|
Last change
on this file since 26 was
26,
checked in by phkim, 11 years ago
|
- phkim
- 서경방소에서 kctv 로고 변경
|
-
Property svn:executable set to
*
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | #ifndef __BAPP_STR_TABLE_H__ |
|---|
| 2 | #define __BAPP_STR_TABLE_H__ |
|---|
| 3 | |
|---|
| 4 | #include "iso_639_lang_map.h" |
|---|
| 5 | |
|---|
| 6 | /* String enums */ |
|---|
| 7 | typedef enum btext_id_t |
|---|
| 8 | { |
|---|
| 9 | eTEXT_ONE_MOMENT, |
|---|
| 10 | eTEXT_TROUBLE_ERROR_1, |
|---|
| 11 | eTEXT_TROUBLE_ERROR_2, |
|---|
| 12 | eTEXT_TROUBLE_ERROR_3, |
|---|
| 13 | eTEXT_MUTE_TITLE, |
|---|
| 14 | eTEXT_PENDING_1, |
|---|
| 15 | eTEXT_PENDING_2, |
|---|
| 16 | eTEXT_PENDING_3, |
|---|
| 17 | eTEXT_PENDING_4, |
|---|
| 18 | eTEXT_SYS_INFO, |
|---|
| 19 | eTEXT_VENDOR, |
|---|
| 20 | eTEXT_MUTE, |
|---|
| 21 | eTEXT_VOLUME, |
|---|
| 22 | eTEXT_DL_1, |
|---|
| 23 | eTEXT_DL_2, |
|---|
| 24 | eTEXT_DL_3, |
|---|
| 25 | eTEXT_DL_4, |
|---|
| 26 | eTEXT_DL_5, |
|---|
| 27 | eTEXT_DL_6, |
|---|
| 28 | eTEXT_HUNT_TITLE, |
|---|
| 29 | eTEXT_HUNT_PROGRESS, |
|---|
| 30 | eTEXT_MAX |
|---|
| 31 | }btext_id_t; |
|---|
| 32 | |
|---|
| 33 | #ifdef __cplusplus |
|---|
| 34 | extern "C" { |
|---|
| 35 | #endif |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | /** |
|---|
| 39 | Summary: |
|---|
| 40 | Use the this function to retrieve a string from the string table. |
|---|
| 41 | **/ |
|---|
| 42 | |
|---|
| 43 | void bapp_str_get( |
|---|
| 44 | bapp_lang_t e_lang, /* Language enum */ |
|---|
| 45 | btext_id_t e_text_id, /* Text enum */ |
|---|
| 46 | unsigned int *p_uni_str, /* Buffer to put UNI string into */ |
|---|
| 47 | unsigned int *str_len /* On input the max length in words on output the actual size in characters. */ |
|---|
| 48 | ); |
|---|
| 49 | |
|---|
| 50 | unsigned int c_to_uni_str( |
|---|
| 51 | unsigned char *str_p, /* Null terminated c-string */ |
|---|
| 52 | unsigned int *p_uni_str, /* buffer to use for contructing UNI string */ |
|---|
| 53 | unsigned int max_size); /* maximum buffer size in words */ |
|---|
| 54 | unsigned int utf16_to_uni_str( |
|---|
| 55 | unsigned short *str_p, /* NULL terminated (0x0000) UTF - 16 string */ |
|---|
| 56 | unsigned int *p_uni_str, /* buffer to use for contructing UNI string */ |
|---|
| 57 | unsigned int max_size); /* maximum buffer size in words */ |
|---|
| 58 | |
|---|
| 59 | #ifdef __cplusplus |
|---|
| 60 | } |
|---|
| 61 | #endif |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | #endif /* __BAPP_STR_TABLE_H__ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.