diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-08-23 10:57:34 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-08-23 10:57:34 +0000 |
commit | 2d6f782811c78522ae2efab63d9b482d87813182 (patch) | |
tree | 3bf7be4ac4cc2e5312b7de442caccbfd0c030a75 | |
parent | d5a08c35bad64c16c4ccd8e9cd5a6d6b3b0150cc (diff) |
Mark new device related methods as experimental
-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); |