summaryrefslogtreecommitdiff
path: root/src/cgroup.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-21 23:27:18 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-21 23:27:18 +0200
commit8c6db8336536916d0476ff8233e0abf40a2f6aab (patch)
tree66ea4c87f407d9ed24eed9539cf9a5275045add2 /src/cgroup.h
parent96551bae6107936a4576b9b4b391abbc9963bdfe (diff)
pam: implement systemd PAM module and generelize cgroup API for that a bit
Diffstat (limited to 'src/cgroup.h')
-rw-r--r--src/cgroup.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cgroup.h b/src/cgroup.h
index 67c7cc3501..11d2aba8cf 100644
--- a/src/cgroup.h
+++ b/src/cgroup.h
@@ -22,8 +22,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <libcgroup.h>
-
typedef struct CGroupBonding CGroupBonding;
#include "unit.h"
@@ -35,8 +33,6 @@ struct CGroupBonding {
Unit *unit;
- struct cgroup *cgroup;
-
/* For the Unit::cgroup_bondings list */
LIST_FIELDS(CGroupBonding, by_unit);
@@ -48,6 +44,9 @@ struct CGroupBonding {
/* When our tasks are the only ones in this group */
bool only_us:1;
+
+ /* This cgroup is realized */
+ bool realized:1;
};
int cgroup_bonding_realize(CGroupBonding *b);
@@ -72,7 +71,7 @@ char *cgroup_bonding_to_string(CGroupBonding *b);
#include "manager.h"
int manager_setup_cgroup(Manager *m);
-int manager_shutdown_cgroup(Manager *m, bool delete);
+int manager_shutdown_cgroup(Manager *m);
int cgroup_notify_empty(Manager *m, const char *group);