#ifndef _LIBCGROUP_H
#define _LIBCGROUP_H
+#define _LIBCGROUP_H_INSIDE
+
#include <libcgroup/error.h>
#include <libcgroup/init.h>
#include <libcgroup/iterators.h>
#include <libcgroup/tasks.h>
#include <libcgroup/config.h>
+#undef _LIBCGROUP_H_INSIDE
+
#endif /* _LIBCGROUP_H */
#ifndef _LIBCGROUP_CONFIG_H
#define _LIBCGROUP_CONFIG_H
+#ifndef _LIBCGROUP_H_INSIDE
+#error "Only <libcgroup.h> should be included directly."
+#endif
+
#include <features.h>
__BEGIN_DECLS
#ifndef _LIBCGROUP_ERROR_H
#define _LIBCGROUP_ERROR_H
+#ifndef _LIBCGROUP_H_INSIDE
+#error "Only <libcgroup.h> should be included directly."
+#endif
+
#include <features.h>
__BEGIN_DECLS
#ifndef _LIBCGROUP_GROUPS_H
#define _LIBCGROUP_GROUPS_H
+#ifndef _LIBCGROUP_H_INSIDE
+#error "Only <libcgroup.h> should be included directly."
+#endif
+
#include <features.h>
#include <sys/types.h>
#include <stdbool.h>
#ifndef _LIBCGROUP_INIT_H
#define _LIBCGROUP_INIT_H
+#ifndef _LIBCGROUP_H_INSIDE
+#error "Only <libcgroup.h> should be included directly."
+#endif
+
#include <features.h>
__BEGIN_DECLS
#ifndef _LIBCGROUP_ITERATORS_H
#define _LIBCGROUP_ITERATORS_H
+#ifndef _LIBCGROUP_H_INSIDE
+#error "Only <libcgroup.h> should be included directly."
+#endif
+
#include <sys/types.h>
#include <stdio.h>
#include <features.h>
#ifndef _LIBCGROUP_TASKS_H
#define _LIBCGROUP_TASKS_H
+#ifndef _LIBCGROUP_H_INSIDE
+#error "Only <libcgroup.h> should be included directly."
+#endif
+
#include <libcgroup/groups.h>
#include <features.h>
__END_DECLS
#endif /* _LIBCGROUP_TASKS_H */
-
-