summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-30 16:12:46 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-02 19:45:47 -0500
commitab9001a1e3dc6e60d0cdf53363dc5d18dcc382fd (patch)
treecc00815e489ca4cf52aa8264491b9b5c3b6cbbd2 /src/shared
parentda13d4d20f8ca12e86863abbae5ed47bca936828 (diff)
Move bus path definitions to def.h
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/def.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/def.h b/src/shared/def.h
index d196af76bd..ac325bf8f9 100644
--- a/src/shared/def.h
+++ b/src/shared/def.h
@@ -59,3 +59,15 @@
"/usr/share/kbd/keymaps/\0" \
"/usr/lib/kbd/keymaps/\0"
#endif
+
+#define UNIX_SYSTEM_BUS_PATH "unix:path=/run/dbus/system_bus_socket"
+#define KERNEL_SYSTEM_BUS_PATH "kernel:path=/dev/kdbus/0-system/bus"
+
+#ifdef ENABLE_KDBUS
+# define DEFAULT_SYSTEM_BUS_PATH KERNEL_SYSTEM_BUS_PATH ";" UNIX_SYSTEM_BUS_PATH
+#else
+# define DEFAULT_SYSTEM_BUS_PATH UNIX_SYSTEM_BUS_PATH
+#endif
+
+#define UNIX_USER_BUS_FMT "unix:path=%s/bus"
+#define KERNEL_USER_BUS_FMT "kernel:path=/dev/kdbus/%lu-user/bus"