From dd79fc73f08574698c18c6a35dc309d5ef33fde0 Mon Sep 17 00:00:00 2001 From: Mikael Hallendal Date: Fri, 12 Mar 2004 14:07:16 +0000 Subject: 2004-03-12 Mikael Hallendal * bus/activation.c: - Added service file reloading. Each service files directory is kept in an hash table in BusActivation and each BusActivationEntry knows what .service-file it was read from. So when you try to activate a service the bus will check if it's been updated, removed or if new .service-files has been installed. - Test code at the bottom for the service file reloading. * bus/test-main.c: (main): * bus/test.h: - added service reloading test. * dbus/dbus-sysdeps.c: * dbus/dbus-sysdeps.h: (_dbus_delete_directory): Added. --- bus/test.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bus/test.h') diff --git a/bus/test.h b/bus/test.h index c5f054e8..236afbf1 100644 --- a/bus/test.h +++ b/bus/test.h @@ -38,6 +38,7 @@ dbus_bool_t bus_policy_test (const DBusString *test_data_d dbus_bool_t bus_config_parser_test (const DBusString *test_data_dir); dbus_bool_t bus_signals_test (const DBusString *test_data_dir); dbus_bool_t bus_expire_list_test (const DBusString *test_data_dir); +dbus_bool_t bus_activation_service_reload_test (const DBusString *test_data_dir); dbus_bool_t bus_setup_debug_client (DBusConnection *connection); void bus_test_clients_foreach (BusConnectionForeachFunction function, void *data); @@ -50,6 +51,7 @@ BusContext* bus_context_new_test (const DBusString *test_data_d const char *filename); + #endif #endif /* BUS_TEST_H */ -- cgit