[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [qemu] Use domain-name in VNC window title.



# HG changeset patch
# User chris@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 2b1a49dd1273b425e22be4a5eca9573aaf5e1e9e
# Parent  060025203f542fcad5ee2fef73370bbacba556ee
[qemu] Use domain-name in VNC window title.
Set the VNC window title with domain-name.

Signed-off-by: Yang Xiaowei <xiaowei.yang@xxxxxxxxx>
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx>
---
 tools/ioemu/patches/series                |    1 +
 tools/ioemu/patches/vnc-title-domain-name |   19 +++++++++++++++++++
 tools/ioemu/vnc.c                         |    7 +++++--
 3 files changed, 25 insertions(+), 2 deletions(-)

diff -r 060025203f54 -r 2b1a49dd1273 tools/ioemu/patches/series
--- a/tools/ioemu/patches/series        Wed Jul 26 14:20:13 2006 +0100
+++ b/tools/ioemu/patches/series        Wed Jul 26 14:26:03 2006 +0100
@@ -32,3 +32,4 @@ vnc-cleanup
 vnc-cleanup
 vnc-fixes
 vnc-start-vncviewer
+vnc-title-domain-name
diff -r 060025203f54 -r 2b1a49dd1273 tools/ioemu/vnc.c
--- a/tools/ioemu/vnc.c Wed Jul 26 14:20:13 2006 +0100
+++ b/tools/ioemu/vnc.c Wed Jul 26 14:26:03 2006 +0100
@@ -850,6 +850,7 @@ static int protocol_client_msg(VncState 
 
 static int protocol_client_init(VncState *vs, char *data, size_t len)
 {
+    size_t l;
     char pad[3] = { 0, 0, 0 };
 
     vs->width = vs->ds->width;
@@ -886,8 +887,10 @@ static int protocol_client_init(VncState
        
     vnc_write(vs, pad, 3);           /* padding */
 
-    vnc_write_u32(vs, 4);        
-    vnc_write(vs, "QEMU", 4);
+    l = strlen(domain_name); 
+    vnc_write_u32(vs, l);        
+    vnc_write(vs, domain_name, l);
+
     vnc_flush(vs);
 
     vnc_read_when(vs, protocol_client_msg, 1);
diff -r 060025203f54 -r 2b1a49dd1273 tools/ioemu/patches/vnc-title-domain-name
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/ioemu/patches/vnc-title-domain-name Wed Jul 26 14:26:03 2006 +0100
@@ -0,0 +1,25 @@
+Index: ioemu/vnc.c
+===================================================================
+--- ioemu.orig/vnc.c   2006-07-26 14:23:52.426074956 +0100
++++ ioemu/vnc.c        2006-07-26 14:24:15.210558295 +0100
+@@ -850,6 +850,7 @@
+ 
+ static int protocol_client_init(VncState *vs, char *data, size_t len)
+ {
++    size_t l;
+     char pad[3] = { 0, 0, 0 };
+ 
+     vs->width = vs->ds->width;
+@@ -886,8 +887,10 @@
+       
+     vnc_write(vs, pad, 3);           /* padding */
+ 
+-    vnc_write_u32(vs, 4);        
+-    vnc_write(vs, "QEMU", 4);
++    l = strlen(domain_name); 
++    vnc_write_u32(vs, l);        
++    vnc_write(vs, domain_name, l);
++
+     vnc_flush(vs);
+ 
+     vnc_read_when(vs, protocol_client_msg, 1);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.