summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-21 21:20:08 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-21 21:20:08 +0000
commit0d7b614648f2170aa66c799e0f3a4ea62a59c9d9 (patch)
treefbe7c4df6181d1c518bb8dfb8bd966344f547176
parent3067733e2e0d88f8e181d30a4727d8fe798e7965 (diff)
Don't request default adapter
-rw-r--r--input/input-service.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input/input-service.c b/input/input-service.c
index 7ce27518..975bed81 100644
--- a/input/input-service.c
+++ b/input/input-service.c
@@ -812,9 +812,11 @@ static const DBusObjectPathVTable manager_table = {
int input_dbus_init(void)
{
struct input_manager *mgr;
+#if 0
DBusMessage *msg, *reply;
DBusError derr;
const char *adapter;
+#endif
connection = init_dbus(NULL, NULL, NULL);
if (!connection)
@@ -825,6 +827,7 @@ int input_dbus_init(void)
mgr = malloc(sizeof(struct input_manager));
memset(mgr, 0, sizeof(struct input_manager));
+#if 0
/* Get the default adapter path */
msg = dbus_message_new_method_call("org.bluez", "/org/bluez",
"org.bluez.Manager", "DefaultAdapter");
@@ -879,6 +882,7 @@ int input_dbus_init(void)
dbus_message_unref(reply);
info("Default adapter: %s (%s)", mgr->adapter_path, mgr->adapter);
+#endif
/* Fallback to catch invalid device path */
if (!dbus_connection_register_fallback(connection, INPUT_PATH,
@@ -902,4 +906,3 @@ void input_dbus_exit(void)
dbus_connection_unref(connection);
}
-