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

View File

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

View File

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