diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-11-28 14:50:19 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-11-28 15:16:49 +0100 |
commit | 5fd38859b30b95008e483109578c7fef2b5072f3 (patch) | |
tree | cb79e0875b75a3f88ce2c7462121ed3900984866 /src/libsystemd-bus/bus-util.h | |
parent | 3fdb2494c1e24c0a020f5b54022d2c751fd26f50 (diff) |
bus: add bus_name_has_owner() helper
Small helper to run a synchronous "NameHasOwner" request on the
dbus-daemon.
Diffstat (limited to 'src/libsystemd-bus/bus-util.h')
-rw-r--r-- | src/libsystemd-bus/bus-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-util.h b/src/libsystemd-bus/bus-util.h index 20739a92bd..38d468edad 100644 --- a/src/libsystemd-bus/bus-util.h +++ b/src/libsystemd-bus/bus-util.h @@ -56,6 +56,8 @@ int bus_async_unregister_and_quit(sd_event *e, sd_bus *bus, const char *name); int bus_event_loop_with_idle(sd_event *e, sd_bus *bus, const char *name, usec_t timeout); +int bus_name_has_owner(sd_bus *c, const char *name, sd_bus_error *error); + int bus_check_peercred(sd_bus *c); int bus_verify_polkit(sd_bus *bus, sd_bus_message *m, const char *action, bool interactive, bool *_challenge, sd_bus_error *e); |