diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-12 03:55:23 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-12 03:55:23 +0000 |
commit | e598a2372179812389a702b78d5f8537eb6827d9 (patch) | |
tree | fad90d39ca5781d5ffdf4e9131050fe79d3e5383 /ui/librccui.h | |
parent | 6b44784148735f594ac862abcd38c50c5d556df0 (diff) | |
download | librcc-e598a2372179812389a702b78d5f8537eb6827d9.tar.gz librcc-e598a2372179812389a702b78d5f8537eb6827d9.tar.bz2 librcc-e598a2372179812389a702b78d5f8537eb6827d9.tar.xz librcc-e598a2372179812389a702b78d5f8537eb6827d9.zip |
Language and Option Names
Diffstat (limited to 'ui/librccui.h')
-rw-r--r-- | ui/librccui.h | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/ui/librccui.h b/ui/librccui.h index 6b114da..5a8d034 100644 --- a/ui/librccui.h +++ b/ui/librccui.h @@ -14,10 +14,11 @@ typedef void *rcc_ui_page; typedef struct rcc_ui_context_t *rcc_ui_context; +int rccUiInit(); +void rccUiFree(); + rcc_ui_context rccUiCreateContext(rcc_context rccctx); void rccUiFreeContext(rcc_ui_context ctx); -int rccUiSetLanguageNames(rcc_ui_context ctx, rcc_language_name *names); -int rccUiSetOptionNames(rcc_ui_context ctx, rcc_option_name *names); int rccUiRestoreLanguage(rcc_ui_context ctx); int rccUiRestore(rcc_ui_context ctx); @@ -39,6 +40,29 @@ rcc_ui_frame rccUiGetEngineFrame(rcc_ui_context ctx, const char *title); rcc_ui_page rccUiGetPage(rcc_ui_context ctx, const char *title, const char *language_title, const char *charset_title, const char *engine_title); +/******************************************************************************* +************************************ Names ************************************* +*******************************************************************************/ + +struct rcc_language_name_t { + const char *sn; + const char *name; +}; +typedef struct rcc_language_name_t rcc_language_name; + +typedef const char *rcc_option_value_name; +typedef rcc_option_value_name *rcc_option_value_names; + +struct rcc_option_name_t { + rcc_option option; + const char *name; + rcc_option_value_names value_names; +}; +typedef struct rcc_option_name_t rcc_option_name; + +int rccUiSetLanguageNames(rcc_ui_context ctx, rcc_language_name *names); +int rccUiSetOptionNames(rcc_ui_context ctx, rcc_option_name *names); + #ifdef __cplusplus } #endif |