diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 14:30:57 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-01 20:31:50 -0500 |
commit | bc06be753346784e19151814b5b9c01c624317f2 (patch) | |
tree | 233cc31ce5b3fc827c08a2c01fb87ea9868005dc /src/shared/cgroup-show.h | |
parent | d3e8277d5004163c725a895778c3a9dce9ca091e (diff) | |
download | systemd-bc06be753346784e19151814b5b9c01c624317f2.tar.gz systemd-bc06be753346784e19151814b5b9c01c624317f2.tar.bz2 systemd-bc06be753346784e19151814b5b9c01c624317f2.zip |
shared/cgroup-show: extract funtion to query unit cgroup path
…and use it where possible.
Diffstat (limited to 'src/shared/cgroup-show.h')
-rw-r--r-- | src/shared/cgroup-show.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/cgroup-show.h b/src/shared/cgroup-show.h index 1445c05f1f..736f0f34c8 100644 --- a/src/shared/cgroup-show.h +++ b/src/shared/cgroup-show.h @@ -22,6 +22,8 @@ #include <stdbool.h> #include <sys/types.h> +#include <systemd/sd-bus.h> + #include "logs-show.h" #include "output-mode.h" @@ -31,6 +33,10 @@ int show_cgroup(const char *controller, const char *path, const char *prefix, un int show_cgroup_and_extra_by_spec(const char *spec, const char *prefix, unsigned n_columns, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags); int show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, unsigned n_columns, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags); +int show_cgroup_get_unit_path_and_warn( + sd_bus *bus, + const char *unit, + char **ret); int show_cgroup_get_path_and_warn( const char *machine, const char *prefix, |