提交 70dc671a 编写于 作者: P Pavel Hrdina

vircgroup: Rename structs to start with underscore

Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 79664141
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册