1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include <stdbool.h> 5 #include <sys/types.h> 6 7 #include "sd-bus.h" 8 9 #include "logs-show.h" 10 #include "output-mode.h" 11 12 int show_cgroup_by_path(const char *path, const char *prefix, size_t n_columns, OutputFlags flags); 13 int show_cgroup(const char *controller, const char *path, const char *prefix, size_t n_columns, OutputFlags flags); 14 15 int show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, size_t n_columns, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags); 16 17 int show_cgroup_get_unit_path_and_warn( 18 sd_bus *bus, 19 const char *unit, 20 char **ret); 21 int show_cgroup_get_path_and_warn( 22 const char *machine, 23 const char *prefix, 24 char **ret); 25