xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Fantu <fantonifabio@tiscali.it>
To: xen-devel@lists.xensource.com
Subject: Re: [PATCH] tools: add default keymap in xl.conf
Date: Tue, 24 May 2011 05:42:41 -0700 (PDT)	[thread overview]
Message-ID: <1306240961555-4421951.post@n5.nabble.com> (raw)
In-Reply-To: <1306240738381-4421943.post@n5.nabble.com>

# HG changeset patch
# User Fabio Fantoni
# Date 1306240203 -7200
# Branch fabio
# Node ID 3bfc3d4e4792831a80821143a06d8f4b25a9fb43
# Parent  79341a653633ffde213dfa7d071b677d419707bb
tools: add default keymap in xl.conf

Partial patch of add default keymap in xl.conf, effective use of variable
default_keymap if keymap is not set in domU configuration file is missed

Signed-off-by: Fabio Fantoni &lt;fabio.fantoni@heliman.it&gt;  

diff -r 79341a653633 -r 3bfc3d4e4792 tools/examples/xl.conf
--- a/tools/examples/xl.conf	Tue May 24 11:48:58 2011 +0200
+++ b/tools/examples/xl.conf	Tue May 24 14:30:03 2011 +0200
@@ -9,3 +9,7 @@
 
 # default vif script 
 #vifscript="vif-bridge"
+
+# The default keymap to use for the VM's virtual keyboard
+# when not specififed in VM's configuration
+#keymap="en-us"
diff -r 79341a653633 -r 3bfc3d4e4792 tools/libxl/xl.c
--- a/tools/libxl/xl.c	Tue May 24 11:48:58 2011 +0200
+++ b/tools/libxl/xl.c	Tue May 24 14:30:03 2011 +0200
@@ -37,6 +37,7 @@
 int autoballoon = 1;
 char *lockfile;
 char *default_vifscript = NULL;
+char *default_keymap = NULL;
 
 static xentoollog_level minmsglevel = XTL_PROGRESS;
 
@@ -77,6 +78,9 @@
     if (!xlu_cfg_get_string (config, "vifscript", &buf))
         default_vifscript = strdup(buf);
 
+	if (!xlu_cfg_get_string (config, "keymap", &buf))
+        default_keymap = strdup(buf);
+
     xlu_cfg_destroy(config);
 }
  
diff -r 79341a653633 -r 3bfc3d4e4792 tools/libxl/xl.h
--- a/tools/libxl/xl.h	Tue May 24 11:48:58 2011 +0200
+++ b/tools/libxl/xl.h	Tue May 24 14:30:03 2011 +0200
@@ -102,5 +102,6 @@
 extern int autoballoon;
 extern char *lockfile;
 extern char *default_vifscript;
+extern char *default_keymap;
 
 #endif /* XL_H */


--
View this message in context: http://xen.1045712.n5.nabble.com/PATCH-tools-add-default-keymap-in-xl-conf-tp4421943p4421951.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

  reply	other threads:[~2011-05-24 12:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 12:38 [PATCH] tools: add default keymap in xl.conf Fantu
2011-05-24 12:42 ` Fantu [this message]
2011-05-24 16:50   ` Ian Jackson
2011-05-25 10:09     ` Fantu
2011-05-26 14:35       ` Ian Jackson
2011-06-06 10:44         ` Fantu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1306240961555-4421951.post@n5.nabble.com \
    --to=fantonifabio@tiscali.it \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).