X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fcgroup-attr.h;h=0f5b85489846c60c4403b1edd248027abd7683fa;hb=8755586eba8b824851f11aa6c3f8f184ed69a30a;hp=2b3c1aea9e0ddbabce61bc2610a412f6f35b74e3;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8;p=elogind.git diff --git a/src/core/cgroup-attr.h b/src/core/cgroup-attr.h index 2b3c1aea9..0f5b85489 100644 --- a/src/core/cgroup-attr.h +++ b/src/core/cgroup-attr.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foocgroupattrhfoo -#define foocgroupattrhfoo +#pragma once /*** This file is part of systemd. @@ -34,6 +33,8 @@ struct CGroupAttribute { char *name; char *value; + Unit *unit; + CGroupAttributeMapCallback map_callback; LIST_FIELDS(CGroupAttribute, by_unit); @@ -44,6 +45,5 @@ int cgroup_attribute_apply_list(CGroupAttribute *first, CGroupBonding *b); CGroupAttribute *cgroup_attribute_find_list(CGroupAttribute *first, const char *controller, const char *name); +void cgroup_attribute_free(CGroupAttribute *a); void cgroup_attribute_free_list(CGroupAttribute *first); - -#endif