]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: virtypedparam: Privatize definition of struct _virTypedParamList
authorPeter Krempa <pkrempa@redhat.com>
Tue, 18 Apr 2023 13:08:45 +0000 (15:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 May 2023 12:32:46 +0000 (14:32 +0200)
Ensure that all callers access it via the APIs.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virtypedparam.c
src/util/virtypedparam.h

index 05dea25165c8ea6f74d3a783bc9405ce4d39b712..2157b89e1b57ed458a34c2ae8b9c3e4d641a28a1 100644 (file)
@@ -705,6 +705,13 @@ virTypedParamsSerialize(virTypedParameterPtr params,
 }
 
 
+struct _virTypedParamList {
+    virTypedParameterPtr par;
+    size_t npar;
+    size_t par_alloc;
+};
+
+
 virTypedParamList *
 virTypedParamListNew(void)
 {
index 628c951432a5f822e753b9d8592d53ef57eff8af..b6ad209e25d47775d6d7bfb2ea2d20791448ae62 100644 (file)
@@ -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);