mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Drop unused qemuMonitorSetMigrationCapability
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1f8a1a9511
commit
d6d6e2e903
@ -3946,20 +3946,6 @@ qemuMonitorGetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorSetMigrationCapability(qemuMonitorPtr mon,
|
||||
qemuMonitorMigrationCaps capability,
|
||||
bool state)
|
||||
{
|
||||
VIR_DEBUG("capability=%s, state=%d",
|
||||
qemuMonitorMigrationCapsTypeToString(capability), state);
|
||||
|
||||
QEMU_CHECK_MONITOR_JSON(mon);
|
||||
|
||||
return qemuMonitorJSONSetMigrationCapability(mon, capability, state);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorSetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
virBitmapPtr caps,
|
||||
|
@ -760,9 +760,6 @@ VIR_ENUM_DECL(qemuMonitorMigrationCaps);
|
||||
|
||||
int qemuMonitorGetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
char ***capabilities);
|
||||
int qemuMonitorSetMigrationCapability(qemuMonitorPtr mon,
|
||||
qemuMonitorMigrationCaps capability,
|
||||
bool state);
|
||||
int qemuMonitorSetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
virBitmapPtr caps,
|
||||
virBitmapPtr states);
|
||||
|
@ -6198,59 +6198,6 @@ qemuMonitorJSONGetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorJSONSetMigrationCapability(qemuMonitorPtr mon,
|
||||
qemuMonitorMigrationCaps capability,
|
||||
bool state)
|
||||
{
|
||||
int ret = -1;
|
||||
|
||||
virJSONValuePtr cmd = NULL;
|
||||
virJSONValuePtr reply = NULL;
|
||||
virJSONValuePtr cap = NULL;
|
||||
virJSONValuePtr caps;
|
||||
|
||||
if (!(caps = virJSONValueNewArray()))
|
||||
goto cleanup;
|
||||
|
||||
if (!(cap = virJSONValueNewObject()))
|
||||
goto cleanup;
|
||||
|
||||
if (virJSONValueObjectAppendString(
|
||||
cap, "capability",
|
||||
qemuMonitorMigrationCapsTypeToString(capability)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virJSONValueObjectAppendBoolean(cap, "state", state) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virJSONValueArrayAppend(caps, cap) < 0)
|
||||
goto cleanup;
|
||||
|
||||
cap = NULL;
|
||||
|
||||
cmd = qemuMonitorJSONMakeCommand("migrate-set-capabilities",
|
||||
"a:capabilities", &caps,
|
||||
NULL);
|
||||
if (!cmd)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuMonitorJSONCheckError(cmd, reply) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
virJSONValueFree(caps);
|
||||
virJSONValueFree(cap);
|
||||
virJSONValueFree(cmd);
|
||||
virJSONValueFree(reply);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorJSONSetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
virBitmapPtr caps,
|
||||
|
@ -145,9 +145,6 @@ int qemuMonitorJSONGetMigrationStats(qemuMonitorPtr mon,
|
||||
|
||||
int qemuMonitorJSONGetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
char ***capabilities);
|
||||
int qemuMonitorJSONSetMigrationCapability(qemuMonitorPtr mon,
|
||||
qemuMonitorMigrationCaps capability,
|
||||
bool state);
|
||||
int qemuMonitorJSONSetMigrationCapabilities(qemuMonitorPtr mon,
|
||||
virBitmapPtr caps,
|
||||
virBitmapPtr states);
|
||||
|
Loading…
x
Reference in New Issue
Block a user