mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vircgroup: Rename structs to start with underscore
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
7966414194
commit
70dc671a27
@ -385,7 +385,7 @@ virCgroupDetectMountsFromFile(virCgroupPtr group,
|
|||||||
const char *typestr = virCgroupControllerTypeToString(i);
|
const char *typestr = virCgroupControllerTypeToString(i);
|
||||||
int typelen = strlen(typestr);
|
int typelen = strlen(typestr);
|
||||||
char *tmp = entry.mnt_opts;
|
char *tmp = entry.mnt_opts;
|
||||||
struct virCgroupController *controller = &group->controllers[i];
|
struct _virCgroupController *controller = &group->controllers[i];
|
||||||
while (tmp) {
|
while (tmp) {
|
||||||
char *next = strchr(tmp, ',');
|
char *next = strchr(tmp, ',');
|
||||||
int len;
|
int len;
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
# include "virutil.h"
|
# include "virutil.h"
|
||||||
# include "virbitmap.h"
|
# include "virbitmap.h"
|
||||||
|
|
||||||
struct virCgroup;
|
struct _virCgroup;
|
||||||
typedef struct virCgroup *virCgroupPtr;
|
typedef struct _virCgroup *virCgroupPtr;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
VIR_CGROUP_CONTROLLER_CPU,
|
VIR_CGROUP_CONTROLLER_CPU,
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
# include "vircgroup.h"
|
# include "vircgroup.h"
|
||||||
|
|
||||||
struct virCgroupController {
|
struct _virCgroupController {
|
||||||
int type;
|
int type;
|
||||||
char *mountPoint;
|
char *mountPoint;
|
||||||
/* If mountPoint holds several controllers co-mounted,
|
/* If mountPoint holds several controllers co-mounted,
|
||||||
@ -42,10 +42,10 @@ struct virCgroupController {
|
|||||||
char *placement;
|
char *placement;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct virCgroup {
|
struct _virCgroup {
|
||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
struct virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
|
struct _virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
|
||||||
};
|
};
|
||||||
|
|
||||||
int virCgroupDetectMountsFromFile(virCgroupPtr group,
|
int virCgroupDetectMountsFromFile(virCgroupPtr group,
|
||||||
|
Loading…
Reference in New Issue
Block a user