mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +00:00
qemu: monitor: Remove unused qemuMonitorGetBlockJobInfo
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
9b44cab25a
commit
f7b0ade3be
@ -3393,35 +3393,6 @@ qemuMonitorGetAllBlockJobInfo(qemuMonitorPtr mon,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* qemuMonitorGetBlockJobInfo:
|
|
||||||
* Parse Block Job information, and populate info for the named device.
|
|
||||||
* Return 1 if info available, 0 if device has no block job, and -1 on error.
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
qemuMonitorGetBlockJobInfo(qemuMonitorPtr mon,
|
|
||||||
const char *alias,
|
|
||||||
qemuMonitorBlockJobInfoPtr info)
|
|
||||||
{
|
|
||||||
GHashTable *all;
|
|
||||||
qemuMonitorBlockJobInfoPtr data;
|
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
VIR_DEBUG("alias=%s, info=%p", alias, info);
|
|
||||||
|
|
||||||
if (!(all = qemuMonitorGetAllBlockJobInfo(mon, true)))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if ((data = virHashLookup(all, alias))) {
|
|
||||||
*info = *data;
|
|
||||||
ret = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
virHashFree(all);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
qemuMonitorJobDismiss(qemuMonitorPtr mon,
|
qemuMonitorJobDismiss(qemuMonitorPtr mon,
|
||||||
const char *jobname)
|
const char *jobname)
|
||||||
|
@ -1123,10 +1123,6 @@ struct _qemuMonitorBlockJobInfo {
|
|||||||
|
|
||||||
GHashTable *qemuMonitorGetAllBlockJobInfo(qemuMonitorPtr mon,
|
GHashTable *qemuMonitorGetAllBlockJobInfo(qemuMonitorPtr mon,
|
||||||
bool rawjobname);
|
bool rawjobname);
|
||||||
int qemuMonitorGetBlockJobInfo(qemuMonitorPtr mon,
|
|
||||||
const char *device,
|
|
||||||
qemuMonitorBlockJobInfoPtr info)
|
|
||||||
ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
|
|
||||||
|
|
||||||
int qemuMonitorJobDismiss(qemuMonitorPtr mon,
|
int qemuMonitorJobDismiss(qemuMonitorPtr mon,
|
||||||
const char *jobname)
|
const char *jobname)
|
||||||
|
Loading…
Reference in New Issue
Block a user