diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-24 23:55:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-25 02:33:35 +0100 |
commit | 021a1e78d7621bcd844a9bf22efca88960a8e28b (patch) | |
tree | ddcdf2436d4ba4d1c8a59d0e91db7fdd27db35cb /src/libsystemd-bus/sd-bus.h | |
parent | 66f931b4c818a5f9f7f36b2a0f3b0422609a6e8d (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/sd-bus.h')
-rw-r--r-- | src/libsystemd-bus/sd-bus.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libsystemd-bus/sd-bus.h b/src/libsystemd-bus/sd-bus.h index bffce10c1f..c97b2f4f49 100644 --- a/src/libsystemd-bus/sd-bus.h +++ b/src/libsystemd-bus/sd-bus.h @@ -53,8 +53,14 @@ typedef int (*sd_message_handler_t)(sd_bus *bus, int ret, sd_bus_message *m, voi int sd_bus_open_system(sd_bus **ret); int sd_bus_open_user(sd_bus **ret); -int sd_bus_open_address(const char *address, sd_bus **ret); -int sd_bus_open_fd(int fd, sd_bus **ret); + +int sd_bus_new(sd_bus **ret); +int sd_bus_set_address(sd_bus *bus, const char *address); +int sd_bus_set_fd(sd_bus *bus, int fd); +int sd_bus_set_hello(sd_bus *bus, int b); +int sd_bus_set_negotiate_fds(sd_bus *bus, int b); +int sd_bus_start(sd_bus *ret); + void sd_bus_close(sd_bus *bus); sd_bus *sd_bus_ref(sd_bus *bus); |