mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Thu Feb 15 19:06:56 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/conf.c: fix the <graphics> output - we weren't handling sdl
This commit is contained in:
parent
4e2fa18166
commit
e8f064000d
@ -1,3 +1,8 @@
|
|||||||
|
Thu Feb 15 19:06:56 IST 2007 Mark McLoughlin <markmc@redhat.com>
|
||||||
|
|
||||||
|
* qemud/conf.c: fix the <graphics> output - we weren't
|
||||||
|
handling sdl
|
||||||
|
|
||||||
Thu Feb 15 19:06:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
|
Thu Feb 15 19:06:22 IST 2007 Mark McLoughlin <markmc@redhat.com>
|
||||||
|
|
||||||
* qemud/conf.c: fix a couple of typos
|
* qemud/conf.c: fix a couple of typos
|
||||||
|
30
qemud/conf.c
30
qemud/conf.c
@ -1907,13 +1907,31 @@ char *qemudGenerateXML(struct qemud_server *server, struct qemud_vm *vm, int liv
|
|||||||
net = net->next;
|
net = net->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (def->graphicsType == QEMUD_GRAPHICS_VNC) {
|
switch (def->graphicsType) {
|
||||||
if (def->vncPort) {
|
case QEMUD_GRAPHICS_VNC:
|
||||||
qemudBufferPrintf(&buf, " <graphics type='vnc' port='%d'/>\n",
|
if (qemudBufferAdd(&buf, " <graphics type='vnc'") < 0)
|
||||||
vm->id >= 0 && live ? def->vncActivePort : def->vncPort);
|
goto no_memory;
|
||||||
} else {
|
|
||||||
qemudBufferPrintf(&buf, " <graphics type='vnc'/>\n");
|
if (def->vncPort &&
|
||||||
|
qemudBufferPrintf(&buf, " port='%d'",
|
||||||
|
vm->id >= 0 && live ? def->vncActivePort : def->vncPort) < 0)
|
||||||
|
goto no_memory;
|
||||||
|
|
||||||
|
if (qemudBufferAdd(&buf, "/>\n") < 0)
|
||||||
|
goto no_memory;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case QEMUD_GRAPHICS_SDL:
|
||||||
|
if (qemudBufferAdd(&buf, " <graphics type='sdl'/>\n") < 0)
|
||||||
|
goto no_memory;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case QEMUD_GRAPHICS_NONE:
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (def->graphicsType == QEMUD_GRAPHICS_VNC) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qemudBufferAdd(&buf, " </devices>\n") < 0)
|
if (qemudBufferAdd(&buf, " </devices>\n") < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user