mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
vircgroup: Introduce standard set of typedefs and use them
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
70dc671a27
commit
cd77242504
@ -385,7 +385,7 @@ virCgroupDetectMountsFromFile(virCgroupPtr group,
|
||||
const char *typestr = virCgroupControllerTypeToString(i);
|
||||
int typelen = strlen(typestr);
|
||||
char *tmp = entry.mnt_opts;
|
||||
struct _virCgroupController *controller = &group->controllers[i];
|
||||
virCgroupControllerPtr controller = &group->controllers[i];
|
||||
while (tmp) {
|
||||
char *next = strchr(tmp, ',');
|
||||
int len;
|
||||
|
@ -29,7 +29,8 @@
|
||||
# include "virbitmap.h"
|
||||
|
||||
struct _virCgroup;
|
||||
typedef struct _virCgroup *virCgroupPtr;
|
||||
typedef struct _virCgroup virCgroup;
|
||||
typedef virCgroup *virCgroupPtr;
|
||||
|
||||
enum {
|
||||
VIR_CGROUP_CONTROLLER_CPU,
|
||||
|
@ -41,11 +41,13 @@ struct _virCgroupController {
|
||||
char *linkPoint;
|
||||
char *placement;
|
||||
};
|
||||
typedef struct _virCgroupController virCgroupController;
|
||||
typedef virCgroupController *virCgroupControllerPtr;
|
||||
|
||||
struct _virCgroup {
|
||||
char *path;
|
||||
|
||||
struct _virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
|
||||
virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
|
||||
};
|
||||
|
||||
int virCgroupDetectMountsFromFile(virCgroupPtr group,
|
||||
|
Loading…
Reference in New Issue
Block a user