]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-util.c
bus-util: add flags for bus_map_all_properties() (#8546)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Mar 2018 11:37:27 +0000 (20:37 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Mar 2018 11:37:27 +0000 (13:37 +0200)
commita7e4861c7471bfe563078d11acbcecbf2d755462
tree4f66f511af7e783ef753cd4b8acc8b382d99697e
parent6f7729c1767998110c4460c85c94435c5782a613
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.
src/analyze/analyze.c
src/hostname/hostnamectl.c
src/locale/localectl.c
src/login/loginctl.c
src/machine/machinectl.c
src/resolve/resolve-tool.c
src/run/run.c
src/shared/bus-util.c
src/shared/bus-util.h
src/systemctl/systemctl.c
src/timedate/timedatectl.c