diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-07 19:30:24 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-07 19:30:24 +0000 |
commit | f80a7215275b229a597cf8d2bbc7e4e208af522c (patch) | |
tree | 9b9fcfd87de495562932e219dfb9db64859a8140 /hcid/dbus-service.c | |
parent | 15eded276cb81a91f812fe8a5eb8e29a3839542b (diff) |
Use g_dbus_emit_signal for sending D-Bus signals
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r-- | hcid/dbus-service.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index c05a7d6d..0f7b34a1 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -260,7 +260,7 @@ static DBusMessage *set_trusted(DBusConnection *conn, write_trust(BDADDR_ANY, address, service->ident, TRUE); - dbus_connection_emit_signal(conn, service->object_path, + g_dbus_emit_signal(conn, service->object_path, SERVICE_INTERFACE, "TrustAdded", DBUS_TYPE_STRING, &address, DBUS_TYPE_INVALID); @@ -344,7 +344,7 @@ static DBusMessage *remove_trust(DBusConnection *conn, write_trust(BDADDR_ANY, address, service->ident, FALSE); - dbus_connection_emit_signal(conn, service->object_path, + g_dbus_emit_signal(conn, service->object_path, SERVICE_INTERFACE, "TrustRemoved", DBUS_TYPE_STRING, &address, DBUS_TYPE_INVALID); @@ -397,11 +397,11 @@ static int unregister_service_for_connection(DBusConnection *connection, if (!conn) goto cleanup; - dbus_connection_emit_signal(conn, service->object_path, + g_dbus_emit_signal(conn, service->object_path, SERVICE_INTERFACE, "Stopped", DBUS_TYPE_INVALID); - dbus_connection_emit_signal(conn, BASE_PATH, MANAGER_INTERFACE, + g_dbus_emit_signal(conn, BASE_PATH, MANAGER_INTERFACE, "ServiceRemoved", DBUS_TYPE_STRING, &service->object_path, DBUS_TYPE_INVALID); @@ -637,12 +637,12 @@ int register_service(const char *ident, const char **uuids) if (uuids) register_uuids(ident, uuids); - dbus_connection_emit_signal(conn, BASE_PATH, MANAGER_INTERFACE, + g_dbus_emit_signal(conn, BASE_PATH, MANAGER_INTERFACE, "ServiceAdded", DBUS_TYPE_STRING, &service->object_path, DBUS_TYPE_INVALID); - dbus_connection_emit_signal(conn, service->object_path, + g_dbus_emit_signal(conn, service->object_path, SERVICE_INTERFACE, "Started", DBUS_TYPE_INVALID); |