diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-05-07 12:25:15 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-05-07 12:25:15 +0000 |
commit | 0e8b2e702ace40ec86d0f605a9030fccef3a6e5a (patch) | |
tree | 301d176f5f578a345b937fa41f1af22891982f17 /hcid/dbus-test.c | |
parent | c6e6e57381cf3347ae911cbf7e97c021552e6add (diff) |
Use the generic signal sending functions
Diffstat (limited to 'hcid/dbus-test.c')
-rw-r--r-- | hcid/dbus-test.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/hcid/dbus-test.c b/hcid/dbus-test.c index 206bc0fe..23d40b4b 100644 --- a/hcid/dbus-test.c +++ b/hcid/dbus-test.c @@ -115,21 +115,14 @@ static void audit_free(struct audit *audit) static void send_audit_status(struct audit *audit, const char *name) { - DBusMessage *signal; char addr[18], *addr_ptr = addr; - signal = dbus_message_new_signal(audit->adapter_path, TEST_INTERFACE, name); - if (!signal) { - error("Failed to allocate new D-Bus message"); - return; - } - ba2str(&audit->peer, addr); - dbus_message_append_args(signal, DBUS_TYPE_STRING, &addr_ptr, + dbus_connection_emit_signal(audit->conn, audit->adapter_path, + TEST_INTERFACE, name, + DBUS_TYPE_STRING, &addr_ptr, DBUS_TYPE_INVALID); - - send_message_and_unref(audit->conn, signal); } static void audit_requestor_exited(const char *name, struct audit *audit) |