X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fcgroup-util.h;h=697669deba2065fd24faa401d5157106d8c8f15b;hb=56d4fbf92eb6d8eb31c910e137224308c40dd909;hp=cc0ce54521fe834dc30cce08014f4d12b941f73d;hpb=3474ae3c7e1981301d0b35bc89d759ca13f06e8f;p=elogind.git diff --git a/src/shared/cgroup-util.h b/src/shared/cgroup-util.h index cc0ce5452..697669deb 100644 --- a/src/shared/cgroup-util.h +++ b/src/shared/cgroup-util.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foocgrouputilhfoo -#define foocgrouputilhfoo +#pragma once /*** This file is part of systemd. @@ -69,5 +68,7 @@ int cg_is_empty(const char *controller, const char *path, bool ignore_self); int cg_is_empty_recursive(const char *controller, const char *path, bool ignore_self); int cg_get_user_path(char **path); +int cg_pid_get_cgroup(pid_t pid, char **root, char **cgroup); +int cg_pid_get_unit(pid_t pid, char **unit); -#endif +char **cg_shorten_controllers(char **controllers);