summaryrefslogtreecommitdiffstats
path: root/libcgroup.h
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2008-09-29 14:14:51 +0000
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2008-09-29 14:14:51 +0000
commit3a581d5f2dfe420c30dfd12c3be80628d7c953bf (patch)
tree731f5eb562c8482799ce3f7617903bf6d3ee591c /libcgroup.h
parentd1ab753ba5d0d641b52cb90e00ce2eabfae476f4 (diff)
downloadlibcg-3a581d5f2dfe420c30dfd12c3be80628d7c953bf.tar.gz
libcg-3a581d5f2dfe420c30dfd12c3be80628d7c953bf.tar.xz
libcg-3a581d5f2dfe420c30dfd12c3be80628d7c953bf.zip
libcgroup: Change how cgroup_get_cgroup works
Since we will not deprecate API now, and will do so with the next release, let's include this one in and get the API right. With this pathc, we now return int type, and the pointer passed as the argument redirects to the cgroup we are reading. Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@202 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'libcgroup.h')
-rw-r--r--libcgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcgroup.h b/libcgroup.h
index 9325846..2a93022 100644
--- a/libcgroup.h
+++ b/libcgroup.h
@@ -114,7 +114,7 @@ int cgroup_modify_cgroup(struct cgroup *cgroup);
int cgroup_create_cgroup(struct cgroup *cgroup, int ignore_ownership);
int cgroup_delete_cgroup(struct cgroup *cgroup, int ignore_migration);
int cgroup_attach_task_pid(struct cgroup *cgroup, pid_t tid);
-struct cgroup *cgroup_get_cgroup(struct cgroup *cgroup);
+int cgroup_get_cgroup(struct cgroup *cgroup);
int cgroup_create_cgroup_from_parent(struct cgroup *cgroup, int ignore_ownership);
int cgroup_copy_cgroup(struct cgroup *dst, struct cgroup *src);