diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-03-13 13:13:11 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-03-13 13:13:11 +0000 |
commit | 3cbb08d04d3db29e887979f5c7d5fce875500c34 (patch) | |
tree | d90a350564a63448af4d64281b1a66a4bd1e8e6d | |
parent | 81cfb0fc353b88658aec4c1ee0eb6cc5f851df41 (diff) |
Mark adapter SetProperty and GetProperties as experimental.
-rw-r--r-- | hcid/adapter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index 3897bbb1..52cb2b8a 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -3181,6 +3181,9 @@ static DBusHandlerResult get_properties(DBusConnection *conn, bdaddr_t ba; char str[249]; + if (!hcid_dbus_use_experimental()) + return error_unknown_method(conn, msg); + if (check_address(adapter->address) < 0) return error_not_ready(conn, msg); @@ -3235,6 +3238,9 @@ static DBusHandlerResult set_property(DBusConnection *conn, DBusMessageIter sub; const char *property; + if (!hcid_dbus_use_experimental()) + return error_unknown_method(conn, msg); + if (!dbus_message_iter_init(msg, &iter)) return error_invalid_arguments(conn, msg, NULL); |