summaryrefslogtreecommitdiff
path: root/bus/bus.h
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2012-02-21 17:41:45 +0000
committerSimon McVittie <smcv@debian.org>2012-02-21 17:41:45 +0000
commite9e3de91b1b4eed81ac46aa65ef2d04d6eb612a2 (patch)
tree86f6da07dfecf4b1aa9b5d7353b030955117c8d8 /bus/bus.h
parent179af6d37b9de89aa652bd19ff7424c9f08b55f0 (diff)
downloaddbus-e9e3de91b1b4eed81ac46aa65ef2d04d6eb612a2.tar.gz
Imported Upstream version 1.5.10upstream/1.5.10
Diffstat (limited to 'bus/bus.h')
-rw-r--r--bus/bus.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/bus/bus.h b/bus/bus.h
index ebef17c7..35978841 100644
--- a/bus/bus.h
+++ b/bus/bus.h
@@ -66,17 +66,18 @@ typedef struct
typedef enum
{
- FORK_FOLLOW_CONFIG_FILE,
- FORK_ALWAYS,
- FORK_NEVER
-} ForceForkSetting;
+ BUS_CONTEXT_FLAG_NONE = 0,
+ BUS_CONTEXT_FLAG_FORK_ALWAYS = (1 << 1),
+ BUS_CONTEXT_FLAG_FORK_NEVER = (1 << 2),
+ BUS_CONTEXT_FLAG_WRITE_PID_FILE = (1 << 3),
+ BUS_CONTEXT_FLAG_SYSTEMD_ACTIVATION = (1 << 4)
+} BusContextFlags;
BusContext* bus_context_new (const DBusString *config_file,
- ForceForkSetting force_fork,
+ BusContextFlags flags,
DBusPipe *print_addr_pipe,
DBusPipe *print_pid_pipe,
const DBusString *address,
- dbus_bool_t systemd_activation,
DBusError *error);
dbus_bool_t bus_context_reload_config (BusContext *context,
DBusError *error);