Debian Codegraph @

src/include/ux_locales.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef _UX_LOCALES_H_
4 #define _UX_LOCALES_H_
5
6 #include <types.h>
7
8 enum ux_locale_msg {
9 UX_LOCALE_MSG_MEMORY_TRAINING,
10 UX_LOCALE_MSG_LOW_BATTERY,
11 UX_LOCALE_MSG_NUM,
12 };
13
14 /* Unmap the preram_locales if it has been mapped. No-op otherwise. */
15 void ux_locales_unmap(void);
16
17 /*
18 * Get the localized text for a given message ID as per `enum ux_locale_msg`.
19 * This function will try to read the language ID from vboot API, and search the
20 * corresponding translation from CBFS preram_locales.
21 */
22 const char *ux_locales_get_text(enum ux_locale_msg msg_id);
23
24 #endif // _UX_LOCALES_H_