summaryrefslogtreecommitdiff
path: root/src/shared/locale-util.h
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2014-09-24 13:17:43 +0200
committerMichal Sekletar <msekleta@redhat.com>2014-09-25 09:19:56 +0200
commita34286684ebb78dd3db0d7f34feb2c121c9d00cc (patch)
treef94a3b5256d39af5b5a342a15ad8b9f44deeb2ce /src/shared/locale-util.h
parenta5f6c30da3ac58081108221bf8a0f6f1d84b33a9 (diff)
localectl: print warning when there are options given on kernel cmdline
Diffstat (limited to 'src/shared/locale-util.h')
-rw-r--r--src/shared/locale-util.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/shared/locale-util.h b/src/shared/locale-util.h
index 7be9af2b4e..d7a3e4fae6 100644
--- a/src/shared/locale-util.h
+++ b/src/shared/locale-util.h
@@ -21,5 +21,30 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+typedef enum LocaleVariable {
+ /* We don't list LC_ALL here on purpose. People should be
+ * using LANG instead. */
+
+ VARIABLE_LANG,
+ VARIABLE_LANGUAGE,
+ VARIABLE_LC_CTYPE,
+ VARIABLE_LC_NUMERIC,
+ VARIABLE_LC_TIME,
+ VARIABLE_LC_COLLATE,
+ VARIABLE_LC_MONETARY,
+ VARIABLE_LC_MESSAGES,
+ VARIABLE_LC_PAPER,
+ VARIABLE_LC_NAME,
+ VARIABLE_LC_ADDRESS,
+ VARIABLE_LC_TELEPHONE,
+ VARIABLE_LC_MEASUREMENT,
+ VARIABLE_LC_IDENTIFICATION,
+ _VARIABLE_LC_MAX,
+ _VARIABLE_LC_INVALID = -1
+} LocaleVariable;
+
int get_locales(char ***l);
bool locale_is_valid(const char *name);
+
+const char* locale_variable_to_string(LocaleVariable i) _const_;
+LocaleVariable locale_variable_from_string(const char *s) _pure_;