diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-28 16:51:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-28 20:29:43 +0100 |
commit | 5b820358cf2a5cb6d67cc0b1faaaca3b0171f1ac (patch) | |
tree | 91e4d6c1bbe2586c725b4de8d4308c5d6e0256a9 /src/systemd/sd-bus.h | |
parent | 5c3026927de9dfa60ad6ae8326fef5d7824e723e (diff) | |
download | systemd-5b820358cf2a5cb6d67cc0b1faaaca3b0171f1ac.tar.gz |
sd-bus: add new sd_bus_get_address() for querying the current bus address
Also, update "busctl" to show this in its output.
Diffstat (limited to 'src/systemd/sd-bus.h')
-rw-r--r-- | src/systemd/sd-bus.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index 78a81a9436..daa34842d7 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -120,7 +120,7 @@ int sd_bus_set_address(sd_bus *bus, const char *address); int sd_bus_set_fd(sd_bus *bus, int input_fd, int output_fd); int sd_bus_set_exec(sd_bus *bus, const char *path, char *const argv[]); int sd_bus_set_bus_client(sd_bus *bus, int b); -int sd_bus_set_server(sd_bus *bus, int b, sd_id128_t owner_id); +int sd_bus_set_server(sd_bus *bus, int b, sd_id128_t bus_id); int sd_bus_set_anonymous(sd_bus *bus, int b); int sd_bus_set_trusted(sd_bus *bus, int b); int sd_bus_set_description(sd_bus *bus, const char *description); @@ -138,6 +138,7 @@ sd_bus *sd_bus_unref(sd_bus *bus); int sd_bus_is_open(sd_bus *bus); int sd_bus_can_send(sd_bus *bus, char type); +int sd_bus_get_address(sd_bus *bus, const char **address); int sd_bus_get_bus_id(sd_bus *bus, sd_id128_t *id); int sd_bus_get_owner_creds(sd_bus *bus, uint64_t creds_mask, sd_bus_creds **ret); int sd_bus_get_scope(sd_bus *bus, const char **scope); |