diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-11 17:18:14 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-12 12:11:25 +0900 |
commit | eda193578effbc3cee0f6d56ade52434778737c9 (patch) | |
tree | ca73e40f8e75ccc05fda43e39d6b168bdc0eaca3 /src/shared/bus-util.h | |
parent | 878f2dae77e61ee6765b72318f49f8226f45ec0f (diff) | |
download | systemd-eda193578effbc3cee0f6d56ade52434778737c9.tar.gz |
bus-util: make --property= optionally take value
Diffstat (limited to 'src/shared/bus-util.h')
-rw-r--r-- | src/shared/bus-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index b400eb81e2..1b58744d8e 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -63,9 +63,9 @@ int bus_connect_user_systemd(sd_bus **_bus); int bus_connect_transport(BusTransport transport, const char *host, bool user, sd_bus **bus); int bus_connect_transport_systemd(BusTransport transport, const char *host, bool user, sd_bus **bus); -typedef int (*bus_message_print_t) (const char *name, sd_bus_message *m, bool value, bool all); +typedef int (*bus_message_print_t) (const char *name, const char *expected_value, sd_bus_message *m, bool value, bool all); -int bus_print_property(const char *name, sd_bus_message *property, bool value, bool all); +int bus_print_property_value(const char *name, const char *expected_value, bool only_value, const char *fmt, ...); int bus_message_print_all_properties(sd_bus_message *m, bus_message_print_t func, char **filter, bool value, bool all, Set **found_properties); int bus_print_all_properties(sd_bus *bus, const char *dest, const char *path, bus_message_print_t func, char **filter, bool value, bool all, Set **found_properties); |