WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [qemu] Use domain-name in VNC window title.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Jul 2006 16:30:23 +0000
Delivery-date: Wed, 26 Jul 2006 09:33:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [qemu] Use domain-name in VNC window title., Xen patchbot-unstable <=