]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vircgroup: Rename structs to start with underscore
authorPavel Hrdina <phrdina@redhat.com>
Tue, 12 Jun 2018 11:46:04 +0000 (13:46 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 13 Aug 2018 09:53:53 +0000 (11:53 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgroup.c
src/util/vircgroup.h
src/util/vircgrouppriv.h

index 6bf4e88da19cb0ce403b9d4cf951b3a33b6eef5d..7602641713d28d22aea3d72bb3b21937aea80a80 100644 (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;
index d8339276786444b0dcda92e7ec972860474b6865..cfa69b67cb63c46e8d375546330163448d2c08f8 100644 (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,
index 722863e5b6410f424bb2c347c4128f683d228361..71788639d6000046bae4d2d47d13e1cbbbaebf2d 100644 (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,