mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03: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);
|
||||
int typelen = strlen(typestr);
|
||||
char *tmp = entry.mnt_opts;
|
||||
struct virCgroupController *controller = &group->controllers[i];
|
||||
struct _virCgroupController *controller = &group->controllers[i];
|
||||
while (tmp) {
|
||||
char *next = strchr(tmp, ',');
|
||||
int len;
|
||||
|
@ -28,8 +28,8 @@
|
||||
# include "virutil.h"
|
||||
# include "virbitmap.h"
|
||||
|
||||
struct virCgroup;
|
||||
typedef struct virCgroup *virCgroupPtr;
|
||||
struct _virCgroup;
|
||||
typedef struct _virCgroup *virCgroupPtr;
|
||||
|
||||
enum {
|
||||
VIR_CGROUP_CONTROLLER_CPU,
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
# include "vircgroup.h"
|
||||
|
||||
struct virCgroupController {
|
||||
struct _virCgroupController {
|
||||
int type;
|
||||
char *mountPoint;
|
||||
/* If mountPoint holds several controllers co-mounted,
|
||||
@ -42,10 +42,10 @@ struct virCgroupController {
|
||||
char *placement;
|
||||
};
|
||||
|
||||
struct virCgroup {
|
||||
struct _virCgroup {
|
||||
char *path;
|
||||
|
||||
struct virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
|
||||
struct _virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
|
||||
};
|
||||
|
||||
int virCgroupDetectMountsFromFile(virCgroupPtr group,
|
||||
|
Loading…
x
Reference in New Issue
Block a user