]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
util: move dbus specific definition into bus-internal.h
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2019 11:43:53 +0000 (12:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2019 12:25:51 +0000 (13:25 +0100)
It shouldn't be defined globally, since it's pretty much an
implementation detail of DBus.

src/basic/def.h
src/libsystemd/sd-bus/bus-internal.h
src/login/pam_systemd.c

index 196778fcf94ddb2f3526e1e40efa93bf163e2ee2..c354c706a7480ddc16b6586fd20dcf4b1b1c57f6 100644 (file)
 #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT
 #define SIGNALS_IGNORE SIGPIPE
 
-/* Note that we use the new /run prefix here (instead of /var/run) since we require them to be aliases and that way we
- * become independent of /var being mounted */
-#define DEFAULT_SYSTEM_BUS_ADDRESS "unix:path=/run/dbus/system_bus_socket"
-#define DEFAULT_USER_BUS_ADDRESS_FMT "unix:path=%s/bus"
-
 #define NOTIFY_FD_MAX 768
 #define NOTIFY_BUFFER_MAX PIPE_BUF
 
index 63f14047583d05a5df840039c48b16ce608168b9..c73860fb65ee9debc8966a0dcb131b80e53846b1 100644 (file)
 #include "socket-util.h"
 #include "util.h"
 
+/* Note that we use the new /run prefix here (instead of /var/run) since we require them to be aliases and
+ * that way we become independent of /var being mounted */
+#define DEFAULT_SYSTEM_BUS_ADDRESS "unix:path=/run/dbus/system_bus_socket"
+#define DEFAULT_USER_BUS_ADDRESS_FMT "unix:path=%s/bus"
+
 struct reply_callback {
         sd_bus_message_handler_t callback;
         usec_t timeout_usec; /* this is a relative timeout until we reach the BUS_HELLO state, and an absolute one right after */
index 8c90141ad9be077337b05de999a6e42498a4a9ae..864b358eb98513f303ee0ea6b13a763892b25db4 100644 (file)
@@ -15,9 +15,9 @@
 #include "audit-util.h"
 #include "bus-common-errors.h"
 #include "bus-error.h"
+#include "bus-internal.h"
 #include "bus-util.h"
 #include "cgroup-util.h"
-#include "def.h"
 #include "fd-util.h"
 #include "fileio.h"
 #include "format-util.h"