qemuSecurityDomainSetPathLabel(driver, vm, tmp, false);
qemuDomainObjEnterMonitor(vm);
- if (qemuMonitorScreendump(priv->mon, videoAlias, screen, tmp) < 0) {
+ if (qemuMonitorScreendump(priv->mon, videoAlias, screen, NULL, tmp) < 0) {
qemuDomainObjExitMonitor(vm);
goto endjob;
}
qemuMonitorScreendump(qemuMonitor *mon,
const char *device,
unsigned int head,
+ const char *format,
const char *file)
{
- VIR_DEBUG("device=%s head=%u file=%s", device, head, file);
+ VIR_DEBUG("device=%s head=%u format=%s file=%s",
+ device, head, NULLSTR(format), file);
QEMU_CHECK_MONITOR(mon);
- return qemuMonitorJSONScreendump(mon, device, head, file);
+ return qemuMonitorJSONScreendump(mon, device, head, format, file);
}
int qemuMonitorScreendump(qemuMonitor *mon,
const char *device,
unsigned int head,
+ const char *format,
const char *file);
int qemuMonitorSendKey(qemuMonitor *mon,
int qemuMonitorJSONScreendump(qemuMonitor *mon,
const char *device,
unsigned int head,
+ const char *format,
const char *file)
{
g_autoptr(virJSONValue) cmd = NULL;
"s:filename", file,
"S:device", device,
"p:head", head,
+ "S:format", format,
NULL);
if (!cmd)
qemuMonitorJSONScreendump(qemuMonitor *mon,
const char *device,
unsigned int head,
+ const char *format,
const char *file);
int
GEN_TEST_FUNC(qemuMonitorJSONBlockdevMirror, "jobname", true, "vdb", "targetnode", 1024, 1234, 31234, true, true)
GEN_TEST_FUNC(qemuMonitorJSONBlockStream, "vdb", "jobname", "backingnode", "backingfilename", 1024)
GEN_TEST_FUNC(qemuMonitorJSONBlockCommit, "vdb", "jobname", "topnode", "basenode", "backingfilename", 1024)
-GEN_TEST_FUNC(qemuMonitorJSONScreendump, "devicename", 1, "/foo/bar")
+GEN_TEST_FUNC(qemuMonitorJSONScreendump, "devicename", 1, NULL, "/foo/bar")
GEN_TEST_FUNC(qemuMonitorJSONOpenGraphics, "spice", "spicefd", false)
GEN_TEST_FUNC(qemuMonitorJSONNBDServerAdd, "vda", "export", true, "bitmap")
GEN_TEST_FUNC(qemuMonitorJSONDetachCharDev, "serial1")