From c0736ea762bfea95e98c8b9f118b4e5464f2159c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 16 Oct 2008 22:03:25 +0300 Subject: Rename dbus_connection_emit_property_changed to emit_property_changed --- network/connection.c | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) (limited to 'network') 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; -- cgit