summaryrefslogtreecommitdiffstats
path: root/bus/bus.h
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2004-04-16 15:01:25 +0000
committerJon Trowbridge <trow@ximian.com>2004-04-16 15:01:25 +0000
commit600e411f25082bcf82d610a4c71b0dc3435b5a42 (patch)
tree661eb6afae344d8e28202df438801b6e1e3a094e /bus/bus.h
parenta470eaa0789662d3d3e1f0a23e75c7be2ab574cc (diff)
2004-04-15 Jon Trowbridge <trow@ximian.com>
* bus/main.c (signal_handler): Reload the configuration files on SIGHUP. (main): Set up our SIGHUP handler. * bus/bus.c (struct BusContext): Store the config file, user and fork flag in the BusContext. (process_config_first_time_only): Added. Contains the code (previously in bus_context_new) for setting up the BusContext from the BusConfigParser that should only be run the first time the config files are read. (process_config_every_time): Added. Contains the code (previously in bus_context_new) for setting up the BusContext from the BusConfigParser that should be run every time the config files are read. (load_config): Added. Builds a BusConfigParser from the config files and passes the resulting structure off to process_config_first_time_only (assuming this is the first time) and process_config_every_time. (bus_context_new): All of the config-related code has been moved to process_config_first_time_only and process_config_every_time. Now this function just does the non-config-related initializations and calls load_config. (bus_context_reload_config): Added.
Diffstat (limited to 'bus/bus.h')
-rw-r--r--bus/bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bus/bus.h b/bus/bus.h
index 44b94334..7d05508b 100644
--- a/bus/bus.h
+++ b/bus/bus.h
@@ -65,6 +65,8 @@ BusContext* bus_context_new (const DBusStri
int print_addr_fd,
int print_pid_fd,
DBusError *error);
+dbus_bool_t bus_context_reload_config (BusContext *context,
+ DBusError *error);
void bus_context_shutdown (BusContext *context);
BusContext* bus_context_ref (BusContext *context);
void bus_context_unref (BusContext *context);