mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
hyperv: Reformat
This is mostly opening hyperv driver sources in vim, selecting everything, hitting reformat and then fixing a very few places. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Matt Coleman <matt@datto.com>
This commit is contained in:
parent
e8fd9c91c2
commit
c383dc948e
@ -932,8 +932,8 @@ hypervDomainResume(virDomainPtr domain)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange
|
||||
(domain, MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_ENABLED);
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange(domain,
|
||||
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_ENABLED);
|
||||
|
||||
cleanup:
|
||||
hypervFreeObject(priv, (hypervObject *)computerSystem);
|
||||
@ -1051,8 +1051,8 @@ hypervDomainDestroyFlags(virDomainPtr domain, unsigned int flags)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange
|
||||
(domain, MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_DISABLED);
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange(domain,
|
||||
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_DISABLED);
|
||||
|
||||
cleanup:
|
||||
hypervFreeObject(priv, (hypervObject *)computerSystem);
|
||||
@ -1358,8 +1358,8 @@ hypervDomainCreateWithFlags(virDomainPtr domain, unsigned int flags)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange
|
||||
(domain, MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_ENABLED);
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange(domain,
|
||||
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_ENABLED);
|
||||
|
||||
cleanup:
|
||||
hypervFreeObject(priv, (hypervObject *)computerSystem);
|
||||
@ -1675,8 +1675,8 @@ hypervDomainManagedSaveRemove(virDomainPtr domain, unsigned int flags)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange
|
||||
(domain, MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_DISABLED);
|
||||
result = hypervInvokeMsvmComputerSystemRequestStateChange(domain,
|
||||
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_DISABLED);
|
||||
|
||||
cleanup:
|
||||
hypervFreeObject(priv, (hypervObject *)computerSystem);
|
||||
@ -1854,7 +1854,8 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int codeset,
|
||||
/* translate keycodes to win32 and generate keyup scancodes. */
|
||||
for (i = 0; i < nkeycodes; i++) {
|
||||
if (codeset != VIR_KEYCODE_SET_WIN32) {
|
||||
keycode = virKeycodeValueTranslate(codeset, VIR_KEYCODE_SET_WIN32,
|
||||
keycode = virKeycodeValueTranslate(codeset,
|
||||
VIR_KEYCODE_SET_WIN32,
|
||||
keycodes[i]);
|
||||
|
||||
if (keycode < 0) {
|
||||
@ -1907,8 +1908,8 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int codeset,
|
||||
goto cleanup;
|
||||
|
||||
if (hypervInvokeMethod(priv, ¶ms, NULL) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not release key %s"),
|
||||
keycodeStr);
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Could not release key %s"), keycodeStr);
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
@ -1400,7 +1400,7 @@ hypervInvokeMsvmComputerSystemRequestStateChange(virDomainPtr domain,
|
||||
|
||||
int
|
||||
hypervMsvmComputerSystemEnabledStateToDomainState
|
||||
(Msvm_ComputerSystem *computerSystem)
|
||||
(Msvm_ComputerSystem *computerSystem)
|
||||
{
|
||||
switch (computerSystem->data.common->EnabledState) {
|
||||
case MSVM_COMPUTERSYSTEM_ENABLEDSTATE_UNKNOWN:
|
||||
|
@ -132,7 +132,9 @@ typedef hypervInvokeParamsList *hypervInvokeParamsListPtr;
|
||||
|
||||
|
||||
hypervInvokeParamsListPtr hypervCreateInvokeParamsList(hypervPrivate *priv,
|
||||
const char *method, const char *selector, hypervWmiClassInfoListPtr obj);
|
||||
const char *method,
|
||||
const char *selector,
|
||||
hypervWmiClassInfoListPtr obj);
|
||||
|
||||
void hypervFreeInvokeParams(hypervInvokeParamsListPtr params);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(hypervInvokeParamsList, hypervFreeInvokeParams);
|
||||
@ -222,8 +224,7 @@ int hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
|
||||
int hypervInvokeMsvmComputerSystemRequestStateChange(virDomainPtr domain,
|
||||
int requestedState);
|
||||
|
||||
int hypervMsvmComputerSystemEnabledStateToDomainState
|
||||
(Msvm_ComputerSystem *computerSystem);
|
||||
int hypervMsvmComputerSystemEnabledStateToDomainState(Msvm_ComputerSystem *computerSystem);
|
||||
|
||||
bool hypervIsMsvmComputerSystemActive(Msvm_ComputerSystem *computerSystem,
|
||||
bool *in_transition);
|
||||
|
Loading…
Reference in New Issue
Block a user