diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-28 20:37:27 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-03-28 13:37:27 +0200 |
commit | a7e4861c7471bfe563078d11acbcecbf2d755462 (patch) | |
tree | 4f66f511af7e783ef753cd4b8acc8b382d99697e /src/run | |
parent | 6f7729c1767998110c4460c85c94435c5782a613 (diff) | |
download | systemd-a7e4861c7471bfe563078d11acbcecbf2d755462.tar.gz |
bus-util: add flags for bus_map_all_properties() (#8546)
This adds flags BUS_MAP_STRDUP and BUS_MAP_BOOLEAN_AS_BOOL.
If BUS_MAP_STRDUP is set, then each "s" message is duplicated.
If BUS_MAP_BOOLEAN_AS_BOOL is set, then each "b" message is
written to a bool pointer.
Follow-up for #8488.
See https://github.com/systemd/systemd/pull/8488#discussion_r175816270.
Diffstat (limited to 'src/run')
-rw-r--r-- | src/run/run.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/run/run.c b/src/run/run.c index 1da185dde9..f5914f7d64 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -875,6 +875,7 @@ static int run_context_update(RunContext *c, const char *path) { "org.freedesktop.systemd1", path, map, + BUS_MAP_STRDUP, &error, NULL, c); |