libcgroup
Loading...
Searching...
No Matches
tools.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
9#ifndef _LIBCGROUP_TOOLS_H
10#define _LIBCGROUP_TOOLS_H
11
12#ifndef _LIBCGROUP_H_INSIDE
13#error "Only <libcgroup.h> should be included directly."
14#endif
15
16#ifndef SWIG
17#include <features.h>
18#include <sys/types.h>
19#include <stdbool.h>
20#endif
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
41int cgroup_cgxget(struct cgroup **cgrp, enum cg_version_t version, bool ignore_unmappable);
42
53int cgroup_cgxset(const struct cgroup * const cgrp,
54 enum cg_version_t version, bool ignore_unmappable);
55
56#ifdef __cplusplus
57} /* extern "C" */
58#endif
59
60#endif /* _LIBCGROUP_TOOLS_H */
Definition libcgroup-internal.h:121