diff options
-rw-r--r-- | hcid/adapter.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index 16db0ba7..ea536a9b 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -3114,6 +3114,9 @@ static DBusHandlerResult list_devices(DBusConnection *conn, DBusMessageIter iter; DBusMessageIter array_iter; + if (!hcid_dbus_use_experimental()) + return error_unknown_method(conn, msg); + if (!dbus_message_has_signature(msg, DBUS_TYPE_INVALID_AS_STRING)) return error_invalid_arguments(conn, msg); @@ -3140,6 +3143,9 @@ static DBusHandlerResult create_device(DBusConnection *conn, DBusMessage *reply; const char *address, *path; + if (!hcid_dbus_use_experimental()) + return error_unknown_method(conn, msg); + if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &address, DBUS_TYPE_INVALID) == FALSE) return error_invalid_arguments(conn, msg); @@ -3167,6 +3173,9 @@ static DBusHandlerResult remove_device(DBusConnection *conn, DBusMessage *reply; const char *path; + if (!hcid_dbus_use_experimental()) + return error_unknown_method(conn, msg); + if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &path, DBUS_TYPE_INVALID) == FALSE) return error_invalid_arguments(conn, msg); |