From b311d1f2d0bbd906b51c93423f86625e74931a55 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 25 Dec 2006 13:43:56 +0000 Subject: Disable methods that are marked as experimental --- hcid/dbus-service.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hcid/dbus-service.c') diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 69136f8f..103c8a4b 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -39,6 +39,7 @@ #include "dbus-error.h" #include "dbus-manager.h" #include "dbus-service.h" +#include "dbus-hci.h" static struct slist *services = NULL; @@ -107,6 +108,7 @@ void service_call_free(void *data) free(call); } +#if 0 static int service_agent_cmp(const struct service_agent *a, const struct service_agent *b) { int ret; @@ -137,6 +139,7 @@ static int service_agent_cmp(const struct service_agent *a, const struct service return 0; } +#endif static void service_agent_free(struct service_agent *agent) { @@ -664,6 +667,9 @@ static DBusHandlerResult msg_func_services(DBusConnection *conn, struct service_call *call_data; const char *iface; + if (!hcid_dbus_use_experimental()) + return error_unknown_method(conn, msg); + iface = dbus_message_get_interface(msg); if (!strcmp(DBUS_INTERFACE_INTROSPECTABLE, iface) && -- cgit