1
0
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:
Pavel Hrdina 2018-06-12 13:46:04 +02:00
parent 7966414194
commit 70dc671a27
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,