summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-08-02 14:22:10 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-04 22:41:49 -0400
commit4f9a91055ce83be9b6a81bdeab6d360f13ff897a (patch)
tree7a2e7ea073c8fe24d41c121b977aa16fa70cef96 /src/shared/bus-util.h
parent897d2029235b39c06d41ea9fbb1036ccdba0e811 (diff)
systemctl: add --value option
With this option, systemctl will only print the rhs in show: $ systemctl show -p Wants,After systemd-journald --value systemd-journald.socket ... systemd-journald-dev-log.socket ... This is useful in scripts, because the need to call awk or similar is removed.
Diffstat (limited to 'src/shared/bus-util.h')
-rw-r--r--src/shared/bus-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h
index fcda1b2c6c..65eca9ac56 100644
--- a/src/shared/bus-util.h
+++ b/src/shared/bus-util.h
@@ -78,7 +78,7 @@ 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);
-int bus_print_property(const char *name, sd_bus_message *property, bool all);
+int bus_print_property(const char *name, sd_bus_message *property, bool value, bool all);
int bus_print_all_properties(sd_bus *bus, const char *dest, const char *path, char **filter, bool all);
int bus_property_get_bool(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);