diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-06-27 09:28:22 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-06-27 09:28:22 +0000 |
commit | 35381569403e90b8d34b223f524519521bc81598 (patch) | |
tree | 924527ab503a59400cfd96859e101ce8234eabd0 /src/plugin.c | |
parent | fd502754926131e3562a2210ff81af111ccaf867 (diff) | |
download | librcc-35381569403e90b8d34b223f524519521bc81598.tar.gz librcc-35381569403e90b8d34b223f524519521bc81598.tar.bz2 librcc-35381569403e90b8d34b223f524519521bc81598.tar.xz librcc-35381569403e90b8d34b223f524519521bc81598.zip |
Engines rework
- LibGuess support for far east language autodetection
- Support for LibRCD 0.1.9 supporting ISO-8859-1 strings
- Fixing wrong encodings names returned by Enca
- Engine plugins naming scheme is altered
- New API functions: rccEngineGetInfo, rccEngineGetAutoCharsetByName
- Most of languages are no more hardcoded, but moved to the configuration
- RCD engine is added to Belarusian language (I hope it should work)
- Some encoding names are fixed in configuration
- Support for external libiconv
- Support for libcharset
- Find UI interface language from LC_MESSAGES locale
- Simple compilation fix (Thanx to D. Panov)
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugin.c b/src/plugin.c index 38337fb..c53726f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -121,13 +121,13 @@ rcc_plugin_handle rccPluginLoad(rcc_plugin_type type, const char *name) { switch (type) { case RCC_PLUGIN_TYPE_ENGINE: - pluginfn = (char*)malloc((32 + strlen(rcc_home_dir) + strlen(name))*sizeof(char)); + pluginfn = (char*)malloc((48 + strlen(rcc_home_dir) + strlen(name))*sizeof(char)); if (!pluginfn) return NULL; - sprintf(pluginfn, "%s/.rcc/engines/lib%s.so", rcc_home_dir, name); + sprintf(pluginfn, "%s/.rcc/engines/%s_engine.so", rcc_home_dir, name); res = rccLibraryOpen(pluginfn); if (!res) { - sprintf(pluginfn, LIBRCC_DATA_DIR "/engines/lib%s.so", name); + sprintf(pluginfn, LIBRCC_DATA_DIR "/engines/%s_engine.so", name); res = rccLibraryOpen(pluginfn); } free(pluginfn); @@ -156,7 +156,7 @@ rcc_plugin_handle rccPluginLoad(rcc_plugin_type type, const char *name) { rcc_engine *rccPluginEngineGetInfo(const char *name, const char *language) { rcc_plugin_handle handle; rcc_plugin_engine_info_function infofunc; - + handle = rccPluginLoad(RCC_PLUGIN_TYPE_ENGINE, name); if (!handle) return NULL; |