summaryrefslogtreecommitdiffstats
path: root/src/lngconfig.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-03 18:24:08 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-03 18:24:08 +0000
commit50aa5cd62ef4a66da41d68f4a50ddfca97863c38 (patch)
tree43f1bf415e56ace9eb3e19731d3eaffe064c8d68 /src/lngconfig.h
parentdcd966ba50fa18853c5ae06125a5b08b0ee6b10d (diff)
downloadlibrcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.tar.gz
librcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.tar.bz2
librcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.tar.xz
librcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.zip
Multithreading
- Multithreaded access to recoding functions using same context - Engine plugin to select between UTF-8 and ISO8859-1 for Western European Languages - Fix: 'rccTo' converting FS classes - FS class support in 'rccConfigSizedToCharset'
Diffstat (limited to 'src/lngconfig.h')
-rw-r--r--src/lngconfig.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lngconfig.h b/src/lngconfig.h
index 9d23139..edfc782 100644
--- a/src/lngconfig.h
+++ b/src/lngconfig.h
@@ -4,6 +4,7 @@
#include "rcciconv.h"
#include "rcctranslate.h"
#include "rccspell.h"
+#include "rccmutex.h"
struct rcc_language_config_t {
rcc_context ctx;
@@ -24,9 +25,13 @@ struct rcc_language_config_t {
rcc_translate entrans;
rcc_iconv fsiconv;
+
+ rcc_engine_context_s engine_ctx;
+ rcc_mutex mutex;
};
typedef struct rcc_language_config_t rcc_language_config_s;
+rcc_language_ptr rccConfigGetLanguagePointer(rcc_language_config config);
rcc_engine_ptr rccConfigGetEnginePointer(rcc_language_config config, rcc_engine_id engine_id);
rcc_engine_ptr rccConfigCheckEnginePointer(rcc_language_config config, rcc_engine_id engine_id);
@@ -34,12 +39,12 @@ rcc_engine_ptr rccConfigGetCurrentEnginePointer(rcc_language_config config);
rcc_engine_ptr rccConfigCheckCurrentEnginePointer(rcc_language_config config);
rcc_speller rccConfigGetSpeller(rcc_language_config config);
+rcc_translate rccConfigGetTranslator(rcc_language_config config, rcc_language_id to);
+rcc_translate rccConfigGetEnglishTranslator(rcc_language_config config);
int rccConfigInit(rcc_language_config config, rcc_context ctx);
void rccConfigClear(rcc_language_config config);
-rcc_language_config rccGetUsableConfig(rcc_context ctx, rcc_language_id language_id);
-
int rccConfigConfigure(rcc_language_config config);
rcc_charset_id rccConfigGetLocaleUnicodeCharset(rcc_language_config config, const char *locale_variable);