summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/dbus.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/common/dbus.c b/common/dbus.c
index 53e1046b..5a59f8f2 100644
--- a/common/dbus.c
+++ b/common/dbus.c
@@ -877,45 +877,3 @@ int set_nonblocking(int fd)
return 0;
}
-
-static void external_reply(DBusPendingCall *call, void *user_data)
-{
- DBusMessage *reply;
-
- debug("Service register reply");
-
- reply = dbus_pending_call_steal_reply(call);
-
- dbus_message_unref(reply);
-}
-
-void register_external_service(DBusConnection *conn, const char *identifier,
- const char *name, const char *description)
-{
- DBusMessage *msg;
- DBusPendingCall *call;
-
- info("Registering service");
-
- msg = dbus_message_new_method_call("org.bluez", "/org/bluez",
- "org.bluez.Database", "RegisterService");
- if (!msg) {
- error("Can't create service register method");
- return;
- }
-
- dbus_message_append_args(msg, DBUS_TYPE_STRING, &identifier,
- DBUS_TYPE_STRING, &name,
- DBUS_TYPE_STRING, &description, DBUS_TYPE_INVALID);
-
- if (dbus_connection_send_with_reply(conn, msg, &call, -1) == FALSE) {
- error("Can't register service");
- dbus_message_unref(msg);
- return;
- }
-
- dbus_pending_call_set_notify(call, external_reply, NULL, NULL);
- dbus_pending_call_unref(call);
-
- dbus_message_unref(msg);
-}