ia64/xen-unstable

view tools/ioemu/patches/vnc-title-domain-name @ 10805:2b1a49dd1273

[qemu] Use domain-name in VNC window title.
Set the VNC window title with domain-name.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author chris@kneesaa.uk.xensource.com
date Wed Jul 26 14:26:03 2006 +0100 (2006-07-26)
parents
children ec8dd0528fc6
line source
1 Index: ioemu/vnc.c
2 ===================================================================
3 --- ioemu.orig/vnc.c 2006-07-26 14:23:52.426074956 +0100
4 +++ ioemu/vnc.c 2006-07-26 14:24:15.210558295 +0100
5 @@ -850,6 +850,7 @@
7 static int protocol_client_init(VncState *vs, char *data, size_t len)
8 {
9 + size_t l;
10 char pad[3] = { 0, 0, 0 };
12 vs->width = vs->ds->width;
13 @@ -886,8 +887,10 @@
15 vnc_write(vs, pad, 3); /* padding */
17 - vnc_write_u32(vs, 4);
18 - vnc_write(vs, "QEMU", 4);
19 + l = strlen(domain_name);
20 + vnc_write_u32(vs, l);
21 + vnc_write(vs, domain_name, l);
22 +
23 vnc_flush(vs);
25 vnc_read_when(vs, protocol_client_msg, 1);