summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2008-12-22 19:02:07 +0000
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2008-12-22 19:02:07 +0000
commit2c445967caaad6593a608df2f4cb1eb11b814183 (patch)
tree9e2bda282b90387fe76879a5bf8c3c59c6f5ddd9 /tests/libcgrouptest.h
parentaf96447cdd21fad0e16a6ecbda4cdc828370e5cb (diff)
downloadlibcg-2c445967caaad6593a608df2f4cb1eb11b814183.tar.gz
libcg-2c445967caaad6593a608df2f4cb1eb11b814183.tar.xz
libcg-2c445967caaad6593a608df2f4cb1eb11b814183.zip
libcgroup: replace numbers by meaningful macros
From: Sudhir Kumar <skumar@linux.vnet.ibm.com> This patch replaces the magic numbers from the info messages with the corresponding meaningful enums. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@289 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r--tests/libcgrouptest.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h
index af427f5..4ec1651 100644
--- a/tests/libcgrouptest.h
+++ b/tests/libcgrouptest.h
@@ -56,6 +56,28 @@ enum cgroup_control_val_t {
STRING,
};
+enum info_message_t {
+ NULLGRP,
+ COMMONGRP,
+ NOTCRTDGRP,
+ SAMEGRP,
+ TASKINGRP,
+ TASKNOTINGRP,
+ TASKNOTINANYGRP,
+ GRPINFS,
+ GRPNOTINFS,
+ GRPINBOTHCTLS,
+ GRPNOTIN2NDCTL,
+ GRPNOTIN1STCTL,
+ GRPMODINBOTHCTLS,
+ GRPNOTMODIN2NDCTL,
+ GRPNOTMODINANYCTL,
+ GRPDELETEDINFS,
+ GRPNOTDELETEDINFS,
+ GRPNOTDELETEDGLOBALY,
+ NOMESSAGE,
+};
+
/* Create a matrix of possible info messages */
char **info;