From 40b5dc824aaf3b6ab71d7827fb66e080109a11e7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 24 Jan 2011 17:11:52 +0000 Subject: 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 --- bus/test.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bus/test.c') diff --git a/bus/test.c b/bus/test.c index 049fae6f..671a1732 100644 --- a/bus/test.c +++ b/bus/test.c @@ -54,6 +54,13 @@ remove_client_watch (DBusWatch *watch, _dbus_loop_remove_watch (client_loop, watch); } +static void +toggle_client_watch (DBusWatch *watch, + void *data) +{ + _dbus_loop_toggle_watch (client_loop, watch); +} + static dbus_bool_t add_client_timeout (DBusTimeout *timeout, void *data) @@ -120,7 +127,7 @@ bus_setup_debug_client (DBusConnection *connection) if (!dbus_connection_set_watch_functions (connection, add_client_watch, remove_client_watch, - NULL, + toggle_client_watch, connection, NULL)) goto out; -- cgit v1.2.3