util: move dbus specific definition into bus-internal.h
It shouldn't be defined globally, since it's pretty much an implementation detail of DBus.
This commit is contained in:
@@ -21,11 +21,6 @@
|
||||
#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
|
||||
|
||||
|
||||
@@ -16,6 +16,11 @@
|
||||
#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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user