diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-16 22:03:25 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-16 22:03:25 +0300 |
commit | c0736ea762bfea95e98c8b9f118b4e5464f2159c (patch) | |
tree | 1bd3bb6859eccd4ea71dc300b34104496e01cf7c /network/connection.c | |
parent | 3a11e84a573785024b11d89ed4f9b06e43b06ca6 (diff) |
Rename dbus_connection_emit_property_changed to emit_property_changed
Diffstat (limited to 'network/connection.c')
-rw-r--r-- | network/connection.c | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/network/connection.c b/network/connection.c index 6d6ddd03..ed667086 100644 --- a/network/connection.c +++ b/network/connection.c @@ -143,21 +143,15 @@ static gboolean bnep_watchdog_cb(GIOChannel *chan, GIOCondition cond, NETWORK_PEER_INTERFACE, "Disconnected", DBUS_TYPE_STRING, &device, DBUS_TYPE_INVALID); - dbus_connection_emit_property_changed(connection, - nc->peer->path, - NETWORK_PEER_INTERFACE, - "Connected", - DBUS_TYPE_BOOLEAN, &connected); - dbus_connection_emit_property_changed(connection, - nc->peer->path, - NETWORK_PEER_INTERFACE, - "Device", - DBUS_TYPE_STRING, &property); - dbus_connection_emit_property_changed(connection, - nc->peer->path, - NETWORK_PEER_INTERFACE, - "UUID", - DBUS_TYPE_STRING, &property); + emit_property_changed(connection, nc->peer->path, + NETWORK_PEER_INTERFACE, "Connected", + DBUS_TYPE_BOOLEAN, &connected); + emit_property_changed(connection, nc->peer->path, + NETWORK_PEER_INTERFACE, "Device", + DBUS_TYPE_STRING, &property); + emit_property_changed(connection, nc->peer->path, + NETWORK_PEER_INTERFACE, "UUID", + DBUS_TYPE_STRING, &property); } info("%s disconnected", nc->dev); @@ -253,15 +247,15 @@ static gboolean bnep_connect_cb(GIOChannel *chan, GIOCondition cond, DBUS_TYPE_STRING, &pdev, DBUS_TYPE_STRING, &uuid, DBUS_TYPE_INVALID); - dbus_connection_emit_property_changed(connection, nc->peer->path, - NETWORK_PEER_INTERFACE, "Connected", - DBUS_TYPE_BOOLEAN, &connected); - dbus_connection_emit_property_changed(connection, nc->peer->path, - NETWORK_PEER_INTERFACE, "Device", - DBUS_TYPE_BOOLEAN, &pdev); - dbus_connection_emit_property_changed(connection, nc->peer->path, - NETWORK_PEER_INTERFACE, "UUID", - DBUS_TYPE_BOOLEAN, &uuid); + emit_property_changed(connection, nc->peer->path, + NETWORK_PEER_INTERFACE, "Connected", + DBUS_TYPE_BOOLEAN, &connected); + emit_property_changed(connection, nc->peer->path, + NETWORK_PEER_INTERFACE, "Device", + DBUS_TYPE_BOOLEAN, &pdev); + emit_property_changed(connection, nc->peer->path, + NETWORK_PEER_INTERFACE, "UUID", + DBUS_TYPE_BOOLEAN, &uuid); nc->state = CONNECTED; |