summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 6f18b7ca..2c4cdc00 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -3227,9 +3227,6 @@ 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);
@@ -3284,9 +3281,6 @@ 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);
@@ -3370,9 +3364,6 @@ static DBusHandlerResult request_mode(DBusConnection *conn,
uint8_t new_mode;
int ret;
- if (!hcid_dbus_use_experimental())
- return error_unknown_method(conn, msg);
-
if (!dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &mode,
DBUS_TYPE_INVALID))
return error_invalid_arguments(conn, msg, NULL);
@@ -3420,9 +3411,6 @@ 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, NULL);
@@ -3594,9 +3582,6 @@ static DBusHandlerResult create_device(DBusConnection *conn,
struct adapter *adapter = data;
const gchar *address;
- if (!hcid_dbus_use_experimental())
- return error_unknown_method(conn, msg);
-
if (adapter->create)
return error_in_progress(conn, msg, "CreateDevice in progress");
@@ -3612,9 +3597,6 @@ static DBusHandlerResult create_paired_device(DBusConnection *conn,
{
const gchar *address, *agent_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_OBJECT_PATH,
&agent_path,
@@ -3639,9 +3621,6 @@ static DBusHandlerResult remove_device(DBusConnection *conn,
GSList *l;
bdaddr_t src;
- if (!hcid_dbus_use_experimental())
- return error_unknown_method(conn, msg);
-
if (dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID) == FALSE)
return error_invalid_arguments(conn, msg, NULL);
@@ -3683,9 +3662,6 @@ static DBusHandlerResult find_device(DBusConnection *conn,
const gchar *address;
GSList *l;
- 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))
return error_invalid_arguments(conn, msg, NULL);
@@ -3731,9 +3707,6 @@ static DBusHandlerResult register_agent(DBusConnection *conn,
struct adapter *adapter = data;
DBusMessage *reply;
- if (!hcid_dbus_use_experimental())
- return error_unknown_method(conn, msg);
-
if (!dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID))
return error_invalid_arguments(conn, msg, NULL);
@@ -3768,9 +3741,6 @@ static DBusHandlerResult unregister_agent(DBusConnection *conn,
struct adapter *adapter = data;
DBusMessage *reply;
- if (!hcid_dbus_use_experimental())
- return error_unknown_method(conn, msg);
-
if (!dbus_message_get_args(msg, NULL, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID))
return error_invalid_arguments(conn, msg, NULL);