summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-24 23:55:03 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-25 02:33:35 +0100
commit021a1e78d7621bcd844a9bf22efca88960a8e28b (patch)
treeddcdf2436d4ba4d1c8a59d0e91db7fdd27db35cb /src/libsystemd-bus/bus-internal.h
parent66f931b4c818a5f9f7f36b2a0f3b0422609a6e8d (diff)
bus: make optional whether unix socket passing is negotiated and whether hello is sent
This alos gets rid of explicit sd_open_fd() and sd_open_address() constructors in favour of sd_new() + sd_new_start() where the negotiation parameters may be set it in between.
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r--src/libsystemd-bus/bus-internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h
index cdd7b2164f..19965083c6 100644
--- a/src/libsystemd-bus/bus-internal.h
+++ b/src/libsystemd-bus/bus-internal.h
@@ -57,6 +57,7 @@ struct object_callback {
};
enum bus_state {
+ BUS_UNSET,
BUS_OPENING,
BUS_AUTHENTICATING,
BUS_HELLO,
@@ -68,8 +69,10 @@ struct sd_bus {
enum bus_state state;
int fd;
int message_version;
+
+ bool negotiate_fds:1;
bool can_fds:1;
- bool sent_hello:1;
+ bool send_hello:1;
bool ucred_valid:1;
void *rbuffer;