bus-util: introduce bus_open_system_watch_bind_with_description()

Similar to 56fbd7187a, this adds
bus_open_system_watch_bind_with_description() to set description
for busses.
This commit is contained in:
Yu Watanabe
2018-04-17 23:37:52 +09:00
parent 2cb36f7c1e
commit 0ddf50ffcb
2 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -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);
}