]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
hyperv: WMI class list function general cleanup
authorMatt Coleman <mcoleman@datto.com>
Tue, 3 Nov 2020 00:22:03 +0000 (19:22 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 3 Nov 2020 10:27:37 +0000 (11:27 +0100)
* use the same section comment in the header and code
* place the items in the same relative location within the .h and .c
* one parameter per line for multiline function definitions

Signed-off-by: Matt Coleman <matt@datto.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/hyperv/hyperv_wmi.c
src/hyperv/hyperv_wmi.h

index 66aed01832fe336b00118a0837b1175cd29441c5..42ab00e6293fba2621f4adea4eae74edc194bdeb 100644 (file)
@@ -1550,12 +1550,13 @@ hypervMsvmComputerSystemFromDomain(virDomainPtr domain,
 
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Msvm_VirtualSystemSettingData
+ * Generic "Get WMI class list" helpers
  */
 
 int
 hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
-                                              const char *uuid_string, Msvm_VirtualSystemSettingData **list)
+                                              const char *uuid_string,
+                                              Msvm_VirtualSystemSettingData **list)
 {
     g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
 
@@ -1573,13 +1574,10 @@ hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
 }
 
 
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Msvm_MemorySettingData
- */
-
 int
 hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
-                                       const char *vssd_instanceid, Msvm_MemorySettingData **list)
+                                       const char *vssd_instanceid,
+                                       Msvm_MemorySettingData **list)
 {
     g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
 
index 5b97ab3db9ea69e52d1d1bed7b9d49dcf0d4d41b..c8bb82ca6b2e8d2a7ab6df7d8a464d23127bd968 100644 (file)
@@ -201,22 +201,10 @@ const char *hypervReturnCodeToString(int returnCode);
 
 
 
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Generic "Get WMI class list" helpers
- */
-
 int hypervGetWmiClassList(hypervPrivate *priv,
                           hypervWmiClassInfoListPtr wmiInfo, virBufferPtr query,
                           hypervObject **wmiClass);
 
-int hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
-                                                  const char *uuid_string,
-                                                  Msvm_VirtualSystemSettingData **list);
-
-int hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
-                                           const char *vssd_instanceid,
-                                           Msvm_MemorySettingData **list);
-
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  * Msvm_ComputerSystem
  */
@@ -239,3 +227,15 @@ hypervMsvmComputerSystemFromUUID(hypervPrivate *priv, const char *uuid,
 
 int hypervMsvmComputerSystemFromDomain(virDomainPtr domain,
                                        Msvm_ComputerSystem **computerSystem);
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Generic "Get WMI class list" helpers
+ */
+
+int hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
+                                                  const char *uuid_string,
+                                                  Msvm_VirtualSystemSettingData **list);
+
+int hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
+                                           const char *vssd_instanceid,
+                                           Msvm_MemorySettingData **list);