summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-12-25 13:43:56 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-12-25 13:43:56 +0000
commitb311d1f2d0bbd906b51c93423f86625e74931a55 (patch)
treed69fb093b7b2d9e6611e095c32277416ed754ae5 /hcid/dbus-service.c
parent55abce4f9213399119b2756492d825e923f42a52 (diff)
Disable methods that are marked as experimental
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r--hcid/dbus-service.c6
1 files changed, 6 insertions, 0 deletions
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) &&