[libvirt] [PATCH v2 09/24] network_conf: Turn struct _virNetworkObjList private

Michal Privoznik mprivozn at redhat.com
Thu Mar 5 11:05:10 UTC 2015


Now that all the code uses accessors, don't expose the structure
anyway.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/conf/network_conf.c | 7 +++++++
 src/conf/network_conf.h | 6 ------
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index f843e3c..9c1d578 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -51,6 +51,13 @@
 /* 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")
diff --git a/src/conf/network_conf.h b/src/conf/network_conf.h
index 0c2609a..3575659 100644
--- a/src/conf/network_conf.h
+++ b/src/conf/network_conf.h
@@ -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
-- 
2.0.5




More information about the libvir-list mailing list