X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fcgroup-util.h;h=697669deba2065fd24faa401d5157106d8c8f15b;hb=c2f1db8f83618e60dcded8303d14656d7d26b436;hp=bb156fc25911e8321f438854863d5c7a32e90047;hpb=b59e246565337d6c6967059dd15a52a15277433e;p=elogind.git diff --git a/src/shared/cgroup-util.h b/src/shared/cgroup-util.h index bb156fc25..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,7 +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); char **cg_shorten_controllers(char **controllers); - -#endif