diff options
author | Havoc Pennington <hp@redhat.com> | 2003-04-07 23:28:16 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-04-07 23:28:16 +0000 |
commit | fe22b2194d53061fefe64d48ff6a53e6a762279d (patch) | |
tree | 590e2096930716d80fb2ba1ebfce10c10e08efda /bus/test.c | |
parent | 1617fbe36c0bc2952093fc167b6edffdf32c445e (diff) |
2003-04-07 Havoc Pennington <hp@redhat.com>
* doc/dbus-specification.sgml: require that base service names
start with ':' and that the base service is created/deleted
as first and last things a connection does on the bus
* bus/dispatch.c (check_existent_service_activation): lots more
work on the activation test; it doesn't fully pass yet...
* test/test-service.c (main): fix so we don't memleak the
connection to the message bus
(filter_func): accept a message asking us to exit
Diffstat (limited to 'bus/test.c')
-rw-r--r-- | bus/test.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -297,13 +297,13 @@ bus_test_client_listed (DBusConnection *connection) } void -bus_test_run_clients_loop (void) +bus_test_run_clients_loop (dbus_bool_t block_once) { if (client_loop == NULL) return; /* Do one blocking wait, since we're expecting data */ - _dbus_loop_iterate (client_loop, TRUE); + _dbus_loop_iterate (client_loop, block_once); /* Then mop everything up */ while (_dbus_loop_iterate (client_loop, FALSE)) @@ -311,10 +311,11 @@ bus_test_run_clients_loop (void) } void -bus_test_run_bus_loop (BusContext *context) +bus_test_run_bus_loop (BusContext *context, + dbus_bool_t block_once) { /* Do one blocking wait, since we're expecting data */ - _dbus_loop_iterate (bus_context_get_loop (context), TRUE); + _dbus_loop_iterate (bus_context_get_loop (context), block_once); /* Then mop everything up */ while (_dbus_loop_iterate (bus_context_get_loop (context), FALSE)) |