diff options
author | Sergey Udaltsov <svu@gnome.org> | 2008-04-21 22:37:33 +0000 |
---|---|---|
committer | Sergey Udaltsov <svu@gnome.org> | 2008-04-21 22:37:33 +0000 |
commit | 068422e3a7a0aae5983cde5d57ce18e4fb5fa560 (patch) | |
tree | 10a9b45adc0bed36315c118235189d1587a78720 /libxklavier/xkl_config_registry.h | |
parent | ae1528e30b7e0a50660a1c69e03b077ad1010dd9 (diff) | |
download | libxklavier-068422e3a7a0aae5983cde5d57ce18e4fb5fa560.tar.gz |
adding country/language functions, new dep on iso-codes
Diffstat (limited to 'libxklavier/xkl_config_registry.h')
-rw-r--r-- | libxklavier/xkl_config_registry.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/libxklavier/xkl_config_registry.h b/libxklavier/xkl_config_registry.h index e45cc67..28e27c5 100644 --- a/libxklavier/xkl_config_registry.h +++ b/libxklavier/xkl_config_registry.h @@ -264,6 +264,73 @@ extern "C" { option_group_name, XklConfigItem * item); + +/** + * xkl_config_registry_foreach_country: + * @config: the config registry + * @func: callback to call for every ISO 3166 country code + * @data: anything which can be stored into the pointer + * + * Enumerates countries for which layouts are available, + * from the XML configuration registry + */ + extern void xkl_config_registry_foreach_country(XklConfigRegistry * + config, + ConfigItemProcessFunc + func, + gpointer data); + +/** + * xkl_config_registry_foreach_country_variant: + * @config: the config registry + * @country_code: country ISO code for which variants will be listed + * @func: callback to call for every country variant + * @data: anything which can be stored into the pointer + * + * Enumerates keyboard layout variants for the country, + * from the XML configuration registry + */ + extern void + xkl_config_registry_foreach_country_variant(XklConfigRegistry * + config, + const gchar * + country_code, + ConfigItemProcessFunc + func, gpointer data); + +/** + * xkl_config_registry_foreach_language: + * @config: the config registry + * @func: callback to call for every ISO 639-2 country code + * @data: anything which can be stored into the pointer + * + * Enumerates languages for which layouts are available, + * from the XML configuration registry + */ + extern void xkl_config_registry_foreach_language(XklConfigRegistry + * config, + ConfigItemProcessFunc + func, + gpointer data); + +/** + * xkl_config_registry_foreach_language_variant: + * @config: the config registry + * @language_code: language ISO code for which variants will be listed + * @func: callback to call for every country variant + * @data: anything which can be stored into the pointer + * + * Enumerates keyboard layout variants for the language, + * from the XML configuration registry + */ + extern void + xkl_config_registry_foreach_country_variant(XklConfigRegistry * + config, + const gchar * + language_code, + ConfigItemProcessFunc + func, gpointer data); + #ifdef __cplusplus } #endif /* __cplusplus */ |