[PATCH v3 12/25] util: virtypedparam: Privatize definition of struct _virTypedParamList

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ensure that all callers access it via the APIs.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/util/virtypedparam.c | 7 +++++++
 src/util/virtypedparam.h | 5 -----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c
index 6e837c65bc..e03e112d1e 100644
--- a/src/util/virtypedparam.c
+++ b/src/util/virtypedparam.c
@@ -705,6 +705,13 @@ virTypedParamsSerialize(virTypedParameterPtr params,
 }


+struct _virTypedParamList {
+    virTypedParameterPtr par;
+    size_t npar;
+    size_t par_alloc;
+};
+
+
 virTypedParamList *
 virTypedParamListNew(void)
 {
diff --git a/src/util/virtypedparam.h b/src/util/virtypedparam.h
index 628c951432..b6ad209e25 100644
--- a/src/util/virtypedparam.h
+++ b/src/util/virtypedparam.h
@@ -137,11 +137,6 @@ VIR_ENUM_DECL(virTypedParameter);
     } while (0)

 typedef struct _virTypedParamList virTypedParamList;
-struct _virTypedParamList {
-    virTypedParameterPtr par;
-    size_t npar;
-    size_t par_alloc;
-};

 void
 virTypedParamListFree(virTypedParamList *list);
-- 
2.39.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux