vircgroup: Move function used in tests into vircgrouppriv.h

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2018-06-13 12:55:27 +02:00
parent 32686849fc
commit 8ea2d5a6cb
2 changed files with 13 additions and 13 deletions

View File

@ -64,22 +64,9 @@ typedef enum {
bool virCgroupAvailable(void);
int virCgroupNewPartition(const char *path,
bool create,
int controllers,
virCgroupPtr *group)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(4);
int virCgroupNewSelf(virCgroupPtr *group)
ATTRIBUTE_NONNULL(1);
int virCgroupNewDomainPartition(virCgroupPtr partition,
const char *driver,
const char *name,
bool create,
virCgroupPtr *group)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5);
int virCgroupNewThread(virCgroupPtr domain,
virCgroupThreadName nameval,
int id,

View File

@ -54,4 +54,17 @@ int virCgroupDetectMountsFromFile(virCgroupPtr group,
const char *path,
bool checkLinks);
int virCgroupNewPartition(const char *path,
bool create,
int controllers,
virCgroupPtr *group)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(4);
int virCgroupNewDomainPartition(virCgroupPtr partition,
const char *driver,
const char *name,
bool create,
virCgroupPtr *group)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5);
#endif /* __VIR_CGROUP_PRIV_H__ */