chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitb4031e810423eb6474ca9c8eb41cf04d9884c71a
tree24ee06319ba575273446f8b126f02f7f03c578c8
parenteb015030c455526dea8fdf731414ea60081067bf
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/login/loginctl.c
src/shared/bus-util.c
src/shared/bus-util.h