mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00:00
hyperv: WMI class list function general cleanup
* 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>
This commit is contained in:
parent
db294a7eec
commit
58ae6be649
@ -1550,12 +1550,13 @@ hypervMsvmComputerSystemFromDomain(virDomainPtr domain,
|
|||||||
|
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* Msvm_VirtualSystemSettingData
|
* Generic "Get WMI class list" helpers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
|
hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
|
||||||
const char *uuid_string, Msvm_VirtualSystemSettingData **list)
|
const char *uuid_string,
|
||||||
|
Msvm_VirtualSystemSettingData **list)
|
||||||
{
|
{
|
||||||
g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
|
g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
|
||||||
|
|
||||||
@ -1573,13 +1574,10 @@ hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
||||||
* Msvm_MemorySettingData
|
|
||||||
*/
|
|
||||||
|
|
||||||
int
|
int
|
||||||
hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
|
hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
|
||||||
const char *vssd_instanceid, Msvm_MemorySettingData **list)
|
const char *vssd_instanceid,
|
||||||
|
Msvm_MemorySettingData **list)
|
||||||
{
|
{
|
||||||
g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
|
g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
|
||||||
|
|
||||||
|
@ -201,22 +201,10 @@ const char *hypervReturnCodeToString(int returnCode);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
||||||
* Generic "Get WMI class list" helpers
|
|
||||||
*/
|
|
||||||
|
|
||||||
int hypervGetWmiClassList(hypervPrivate *priv,
|
int hypervGetWmiClassList(hypervPrivate *priv,
|
||||||
hypervWmiClassInfoListPtr wmiInfo, virBufferPtr query,
|
hypervWmiClassInfoListPtr wmiInfo, virBufferPtr query,
|
||||||
hypervObject **wmiClass);
|
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
|
* Msvm_ComputerSystem
|
||||||
*/
|
*/
|
||||||
@ -239,3 +227,15 @@ hypervMsvmComputerSystemFromUUID(hypervPrivate *priv, const char *uuid,
|
|||||||
|
|
||||||
int hypervMsvmComputerSystemFromDomain(virDomainPtr domain,
|
int hypervMsvmComputerSystemFromDomain(virDomainPtr domain,
|
||||||
Msvm_ComputerSystem **computerSystem);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user