diff options
author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-01 14:54:17 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-28 10:31:18 -0300 |
commit | 34f8a76bd5bd24ae1a1594f4d1460df393675ec1 (patch) | |
tree | 0c65e1d8b2d34d978a1b470f661778aa0d110573 /hcid/dbus-service.c | |
parent | 1ea3f7de314eb0b699cac4b80f5085666c0e6d50 (diff) |
Remove BASE_PATH define.
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r-- | hcid/dbus-service.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index d07741a3..fda7cf1b 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -391,30 +391,8 @@ static int service_cmp_ident(struct service *service, const char *ident) static int unregister_service_for_connection(DBusConnection *connection, struct service *service) { - DBusConnection *conn = get_dbus_connection(); - debug("Unregistering service object: %s", service->object_path); - if (!conn) - goto cleanup; - - g_dbus_emit_signal(conn, service->object_path, - SERVICE_INTERFACE, - "Stopped", DBUS_TYPE_INVALID); - - g_dbus_emit_signal(conn, BASE_PATH, MANAGER_INTERFACE, - "ServiceRemoved", - DBUS_TYPE_STRING, &service->object_path, - DBUS_TYPE_INVALID); - - if (!g_dbus_unregister_interface(conn, - service->object_path, SERVICE_INTERFACE)) { - error("D-Bus failed to unregister %s object", - service->object_path); - return -1; - } - -cleanup: services = g_slist_remove(services, service); service_free(service); @@ -638,15 +616,6 @@ int register_service(const char *ident, const char **uuids) if (uuids) register_uuids(ident, uuids); - g_dbus_emit_signal(conn, BASE_PATH, MANAGER_INTERFACE, - "ServiceAdded", - DBUS_TYPE_STRING, &service->object_path, - DBUS_TYPE_INVALID); - - g_dbus_emit_signal(conn, service->object_path, - SERVICE_INTERFACE, - "Started", DBUS_TYPE_INVALID); - return 0; } |