X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=bus%2Ftest.c;h=31ef4c8fc67dfdfd165568790cf23d9357d458ac;hb=3428a70ec49b9657651ad74f372912f7aa4d6b09;hp=e1b8a1300354db57a7d9978b0311be319ed3a992;hpb=ba033709b54df18bbe48b22303e0c3d514f547f8;p=platform%2Fupstream%2Fdbus.git diff --git a/bus/test.c b/bus/test.c index e1b8a13..31ef4c8 100644 --- a/bus/test.c +++ b/bus/test.c @@ -23,7 +23,7 @@ #include -#ifdef DBUS_BUILD_TESTS +#ifdef DBUS_ENABLE_EMBEDDED_TESTS #include "test.h" #include #include @@ -50,6 +50,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) @@ -112,7 +119,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; @@ -285,7 +292,7 @@ bus_context_new_test (const DBusString *test_data_dir, } dbus_error_init (&error); - context = bus_context_new (&config_file, FALSE, NULL, NULL, NULL, FALSE, &error); + context = bus_context_new (&config_file, BUS_CONTEXT_FLAG_NONE, NULL, NULL, NULL, &error); if (context == NULL) { _DBUS_ASSERT_ERROR_IS_SET (&error);