]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network_conf: Turn struct _virNetworkObjList private
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Feb 2015 12:48:50 +0000 (13:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Mar 2015 13:03:30 +0000 (14:03 +0100)
Now that all the code uses accessors, don't expose the structure
anyway.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/network_conf.c
src/conf/network_conf.h

index f843e3c5ab24650fd9b34f0c2a9c8220a4f23722..9c1d57842c7baa1e4f53bcdee7426f64ea4a8fc7 100644 (file)
 /* currently, /sbin/tc implementation allows up to 16 bits for minor class size */
 #define CLASS_ID_BITMAP_SIZE (1<<16)
 
+struct _virNetworkObjList {
+    virObject parent;
+
+    size_t count;
+    virNetworkObjPtr *objs;
+};
+
 VIR_ENUM_IMPL(virNetworkForward,
               VIR_NETWORK_FORWARD_LAST,
               "none", "nat", "route", "bridge", "private", "vepa", "passthrough", "hostdev")
index 0c2609a1126dc197d4eb77a273cc9471aff87b02..357565924dab6704f5c9a522a26b38e5ca819a74 100644 (file)
@@ -277,12 +277,6 @@ struct _virNetworkObj {
 
 typedef struct _virNetworkObjList virNetworkObjList;
 typedef virNetworkObjList *virNetworkObjListPtr;
-struct _virNetworkObjList {
-    virObject parent;
-
-    size_t count;
-    virNetworkObjPtr *objs;
-};
 
 typedef enum {
     VIR_NETWORK_TAINT_HOOK,                 /* Hook script was executed over