summaryrefslogtreecommitdiff
path: root/bus/connection.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-01-24 17:11:52 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-06-13 17:30:43 +0100
commit40b5dc824aaf3b6ab71d7827fb66e080109a11e7 (patch)
treef1c4b843bb3df9648ea4c61d74e83821f28acbcc /bus/connection.c
parentf567a7f7192c62310fc57cda7350d7e9de5d082b (diff)
downloaddbus-40b5dc824aaf3b6ab71d7827fb66e080109a11e7.tar.gz
Add a stub _dbus_loop_toggle_watch and call it where needed
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33337 Bug-NB: NB#197191
Diffstat (limited to 'bus/connection.c')
-rw-r--r--bus/connection.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/bus/connection.c b/bus/connection.c
index d74b3261..5d17a2f0 100644
--- a/bus/connection.c
+++ b/bus/connection.c
@@ -312,6 +312,15 @@ remove_connection_watch (DBusWatch *watch,
_dbus_loop_remove_watch (connection_get_loop (connection), watch);
}
+static void
+toggle_connection_watch (DBusWatch *watch,
+ void *data)
+{
+ DBusConnection *connection = data;
+
+ _dbus_loop_toggle_watch (connection_get_loop (connection), watch);
+}
+
static dbus_bool_t
add_connection_timeout (DBusTimeout *timeout,
void *data)
@@ -624,7 +633,7 @@ bus_connections_setup_connection (BusConnections *connections,
if (!dbus_connection_set_watch_functions (connection,
add_connection_watch,
remove_connection_watch,
- NULL,
+ toggle_connection_watch,
connection,
NULL))
goto out;