#ifndef __BAPP_STR_TABLE_H__ #define __BAPP_STR_TABLE_H__ #include "iso_639_lang_map.h" /* String enums */ typedef enum btext_id_t { eTEXT_ONE_MOMENT, eTEXT_TROUBLE_ERROR_1, eTEXT_TROUBLE_ERROR_2, eTEXT_TROUBLE_ERROR_3, eTEXT_MUTE_TITLE, eTEXT_PENDING_1, eTEXT_PENDING_2, eTEXT_PENDING_3, eTEXT_PENDING_4, eTEXT_SYS_INFO, eTEXT_VENDOR, eTEXT_MUTE, eTEXT_VOLUME, eTEXT_DL_1, eTEXT_DL_2, eTEXT_DL_3, eTEXT_DL_4, eTEXT_DL_5, eTEXT_DL_6, eTEXT_HUNT_TITLE, eTEXT_HUNT_PROGRESS, eTEXT_MAX }btext_id_t; #ifdef __cplusplus extern "C" { #endif /** Summary: Use the this function to retrieve a string from the string table. **/ void bapp_str_get( bapp_lang_t e_lang, /* Language enum */ btext_id_t e_text_id, /* Text enum */ unsigned int *p_uni_str, /* Buffer to put UNI string into */ unsigned int *str_len /* On input the max length in words on output the actual size in characters. */ ); unsigned int c_to_uni_str( unsigned char *str_p, /* Null terminated c-string */ unsigned int *p_uni_str, /* buffer to use for contructing UNI string */ unsigned int max_size); /* maximum buffer size in words */ unsigned int utf16_to_uni_str( unsigned short *str_p, /* NULL terminated (0x0000) UTF - 16 string */ unsigned int *p_uni_str, /* buffer to use for contructing UNI string */ unsigned int max_size); /* maximum buffer size in words */ #ifdef __cplusplus } #endif #endif /* __BAPP_STR_TABLE_H__ */