From: Lennart Poettering Date: Wed, 15 Apr 2020 09:59:06 +0000 (+0200) Subject: locale-util: export emoji_enable() for other code to use X-Git-Tag: v246-rc1~587^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=539ee0989eca9a85371cb629e44e177776da7136;p=thirdparty%2Fsystemd.git locale-util: export emoji_enable() for other code to use --- diff --git a/src/basic/locale-util.c b/src/basic/locale-util.c index c367c03a4af..e4ce289c519 100644 --- a/src/basic/locale-util.c +++ b/src/basic/locale-util.c @@ -305,7 +305,7 @@ out: return (bool) cached_answer; } -static bool emoji_enabled(void) { +bool emoji_enabled(void) { static int cached_emoji_enabled = -1; if (cached_emoji_enabled < 0) { diff --git a/src/basic/locale-util.h b/src/basic/locale-util.h index 9c85928e165..7d77fa2bdae 100644 --- a/src/basic/locale-util.h +++ b/src/basic/locale-util.h @@ -68,6 +68,8 @@ typedef enum { const char *special_glyph(SpecialGlyph code) _const_; +bool emoji_enabled(void); + const char* locale_variable_to_string(LocaleVariable i) _const_; LocaleVariable locale_variable_from_string(const char *s) _pure_;