diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-01-24 17:11:52 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-06-13 17:30:43 +0100 |
commit | 40b5dc824aaf3b6ab71d7827fb66e080109a11e7 (patch) | |
tree | f1c4b843bb3df9648ea4c61d74e83821f28acbcc /bus/bus.c | |
parent | f567a7f7192c62310fc57cda7350d7e9de5d082b (diff) | |
download | dbus-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/bus.c')
-rw-r--r-- | bus/bus.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -126,6 +126,18 @@ remove_server_watch (DBusWatch *watch, _dbus_loop_remove_watch (context->loop, watch); } +static void +toggle_server_watch (DBusWatch *watch, + void *data) +{ + DBusServer *server = data; + BusContext *context; + + context = server_get_context (server); + + _dbus_loop_toggle_watch (context->loop, watch); +} + static dbus_bool_t add_server_timeout (DBusTimeout *timeout, void *data) @@ -228,7 +240,7 @@ setup_server (BusContext *context, if (!dbus_server_set_watch_functions (server, add_server_watch, remove_server_watch, - NULL, + toggle_server_watch, server, NULL)) { |