diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-17 23:37:52 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-17 23:37:52 +0900 |
commit | 0ddf50ffcbd5ed4d406264c23c23df4e76bc253c (patch) | |
tree | 32f7ed05eb62342e83836e95ee88c7d698eec4dc /src/shared/bus-util.h | |
parent | 2cb36f7c1e4672df2b47bffab3b7d65216915992 (diff) | |
download | systemd-0ddf50ffcbd5ed4d406264c23c23df4e76bc253c.tar.gz |
bus-util: introduce bus_open_system_watch_bind_with_description()
Similar to 56fbd7187a5af44a90c258fbeb1f17114f226bb3, this adds
bus_open_system_watch_bind_with_description() to set description
for busses.
Diffstat (limited to 'src/shared/bus-util.h')
-rw-r--r-- | src/shared/bus-util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index 668c7cc982..d03d0f82d9 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -159,4 +159,7 @@ int bus_property_get_rlimit(sd_bus *bus, const char *path, const char *interface int bus_track_add_name_many(sd_bus_track *t, char **l); -int bus_open_system_watch_bind(sd_bus **ret); +int bus_open_system_watch_bind_with_description(sd_bus **ret, const char *description); +static inline int bus_open_system_watch_bind(sd_bus **ret) { + return bus_open_system_watch_bind_with_description(ret, NULL); +} |