[virt-tools-list] [libosinfo 1/2] install-config: Document expected kbd layout format

Christophe Fergeau cfergeau at redhat.com
Fri Nov 30 09:37:04 UTC 2012


On Fri, Nov 30, 2012 at 03:00:47AM +0200, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
> 
> ---
>  osinfo/osinfo_install_config.c | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)
> 
> diff --git a/osinfo/osinfo_install_config.c b/osinfo/osinfo_install_config.c
> index adbf9df..e7a8946 100644
> --- a/osinfo/osinfo_install_config.c
> +++ b/osinfo/osinfo_install_config.c
> @@ -124,7 +124,19 @@ const gchar *osinfo_install_config_get_hardware_arch(OsinfoInstallConfig *config
>                                           OSINFO_INSTALL_CONFIG_PROP_HARDWARE_ARCH);
>  }
>  
> -
> +/**
> + * osinfo_install_config_set_l10n_keyboard:
> + *
> + * Sets the #OSINFO_INSTALL_CONFIG_PROP_L10N_KEYBOARD parameter.
> + *
> + * The expected format of this string is an X Window System keyboard layout
> + * specifier:
> + *
> + * http://www.freedesktop.org/wiki/Software/XKeyboardConfig
> + * http://fedoraproject.org/wiki/Anaconda/Kickstart#keyboard

None of these links are really helpful to figure out what the format looks
like. This API seems to be very fedora-specific, the way it works on win7
is described there:
http://technet.microsoft.com/fr-fr/library/cc749191%28v=ws.10%29.aspx
though I did not quite get the format of keyboard layouts

 void osinfo_install_config_set_l10n_keyboard(OsinfoInstallConfig *config,
                                              const gchar *locale,
                                              const gchar *keyboard_layout);
will probably be more flexible. 'locale' would be in the same 'gettext'
format as in other places. Not sure at all what the format of
keyboard_layout should be, just that it can be NULL to use the default
keyboard layout (which is what we'll want most of the time).

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20121130/1c0a7f1e/attachment.sig>


More information about the virt-tools-list mailing list