]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
05d3a176 | 2 | #pragma once |
ab35fb1b LP |
3 | |
4 | /*** | |
5 | This file is part of systemd. | |
6 | ||
7 | Copyright 2010 Lennart Poettering | |
8 | ||
9 | systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
10 | under the terms of the GNU Lesser General Public License as published by |
11 | the Free Software Foundation; either version 2.1 of the License, or | |
ab35fb1b LP |
12 | (at your option) any later version. |
13 | ||
14 | systemd is distributed in the hope that it will be useful, but | |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5430f7f2 | 17 | Lesser General Public License for more details. |
ab35fb1b | 18 | |
5430f7f2 | 19 | You should have received a copy of the GNU Lesser General Public License |
ab35fb1b LP |
20 | along with systemd; If not, see <http://www.gnu.org/licenses/>. |
21 | ***/ | |
22 | ||
1e5678d0 | 23 | #include <stdbool.h> |
b69d29ce | 24 | #include <sys/types.h> |
71d35b6b | 25 | |
62cc1c55 | 26 | #include "sd-bus.h" |
bc06be75 | 27 | |
9bdbc2e2 | 28 | #include "logs-show.h" |
a8fbdf54 | 29 | #include "output-mode.h" |
1e5678d0 | 30 | |
0ff308c8 LP |
31 | int show_cgroup_by_path(const char *path, const char *prefix, unsigned columns, OutputFlags flags); |
32 | int show_cgroup(const char *controller, const char *path, const char *prefix, unsigned columns, OutputFlags flags); | |
ab35fb1b | 33 | |
0ff308c8 LP |
34 | 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); |
35 | 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); | |
049cb73b | 36 | |
bc06be75 ZJS |
37 | int show_cgroup_get_unit_path_and_warn( |
38 | sd_bus *bus, | |
39 | const char *unit, | |
40 | char **ret); | |
d3e8277d | 41 | int show_cgroup_get_path_and_warn( |
049cb73b | 42 | const char *machine, |
d3e8277d | 43 | const char *prefix, |
049cb73b | 44 | char **ret); |