mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
qemu: monitor: Remove qemuMonitorJobCancel
The API is unused since last commit. Remove it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ced56f780e
commit
2384b6cade
@ -3448,19 +3448,6 @@ qemuMonitorJobDismiss(qemuMonitor *mon,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorJobCancel(qemuMonitor *mon,
|
||||
const char *jobname,
|
||||
bool quiet)
|
||||
{
|
||||
VIR_DEBUG("jobname='%s' quiet=%d", jobname, quiet);
|
||||
|
||||
QEMU_CHECK_MONITOR(mon);
|
||||
|
||||
return qemuMonitorJSONJobCancel(mon, jobname, quiet);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorJobComplete(qemuMonitor *mon,
|
||||
const char *jobname)
|
||||
|
@ -1106,11 +1106,6 @@ int qemuMonitorJobDismiss(qemuMonitor *mon,
|
||||
const char *jobname)
|
||||
ATTRIBUTE_NONNULL(2);
|
||||
|
||||
int qemuMonitorJobCancel(qemuMonitor *mon,
|
||||
const char *jobname,
|
||||
bool quiet)
|
||||
ATTRIBUTE_NONNULL(2);
|
||||
|
||||
int qemuMonitorJobComplete(qemuMonitor *mon,
|
||||
const char *jobname)
|
||||
ATTRIBUTE_NONNULL(2);
|
||||
|
@ -5319,34 +5319,6 @@ qemuMonitorJSONJobDismiss(qemuMonitor *mon,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorJSONJobCancel(qemuMonitor *mon,
|
||||
const char *jobname,
|
||||
bool quiet)
|
||||
{
|
||||
g_autoptr(virJSONValue) cmd = NULL;
|
||||
g_autoptr(virJSONValue) reply = NULL;
|
||||
|
||||
if (!(cmd = qemuMonitorJSONMakeCommand("job-cancel",
|
||||
"s:id", jobname,
|
||||
NULL)))
|
||||
return -1;
|
||||
|
||||
if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
|
||||
return -1;
|
||||
|
||||
if (quiet) {
|
||||
if (virJSONValueObjectHasKey(reply, "error") != 0)
|
||||
return -1;
|
||||
} else {
|
||||
if (qemuMonitorJSONBlockJobError(cmd, reply, jobname) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMonitorJSONJobComplete(qemuMonitor *mon,
|
||||
const char *jobname)
|
||||
|
@ -348,11 +348,6 @@ int qemuMonitorJSONJobDismiss(qemuMonitor *mon,
|
||||
const char *jobname)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
||||
|
||||
int qemuMonitorJSONJobCancel(qemuMonitor *mon,
|
||||
const char *jobname,
|
||||
bool quiet)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
||||
|
||||
int qemuMonitorJSONJobComplete(qemuMonitor *mon,
|
||||
const char *jobname)
|
||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
||||
|
@ -1216,7 +1216,6 @@ GEN_TEST_FUNC(qemuMonitorJSONBlockdevMediumRemove, "foodev")
|
||||
GEN_TEST_FUNC(qemuMonitorJSONBlockdevMediumInsert, "foodev", "newnode")
|
||||
GEN_TEST_FUNC(qemuMonitorJSONBitmapRemove, "foodev", "newnode")
|
||||
GEN_TEST_FUNC(qemuMonitorJSONJobDismiss, "jobname")
|
||||
GEN_TEST_FUNC(qemuMonitorJSONJobCancel, "jobname", false)
|
||||
GEN_TEST_FUNC(qemuMonitorJSONJobComplete, "jobname")
|
||||
GEN_TEST_FUNC(qemuMonitorJSONBlockJobCancel, "jobname", true)
|
||||
|
||||
@ -3121,7 +3120,6 @@ mymain(void)
|
||||
DO_TEST_GEN(qemuMonitorJSONBlockdevMediumInsert);
|
||||
DO_TEST_GEN(qemuMonitorJSONBitmapRemove);
|
||||
DO_TEST_GEN(qemuMonitorJSONJobDismiss);
|
||||
DO_TEST_GEN(qemuMonitorJSONJobCancel);
|
||||
DO_TEST_GEN(qemuMonitorJSONJobComplete);
|
||||
DO_TEST_GEN(qemuMonitorJSONBlockJobCancel);
|
||||
DO_TEST(qemuMonitorJSONGetBalloonInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user