summaryrefslogtreecommitdiffstats
path: root/src/librcd.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-28 16:37:40 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-06-28 16:37:40 +0000
commite491cf8ad72d6752af8dac345d3bbc491e21a13a (patch)
treedb41b453a116c64cbac10f51aeec3c68d954cce6 /src/librcd.h
parent70fbe7822024d0acc68df3607ff25bf8d7a71751 (diff)
downloadlibrcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.gz
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.bz2
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.xz
librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.zip
0.1.6
* Function name is changed to conform LibRCC naming conventions * AutoConf Improvements * Release Script * Other minor changes
Diffstat (limited to 'src/librcd.h')
-rw-r--r--src/librcd.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/librcd.h b/src/librcd.h
index ced423a..bd3c2e7 100644
--- a/src/librcd.h
+++ b/src/librcd.h
@@ -5,16 +5,17 @@
extern "C" {
#endif
-enum russian_charsets {
+enum rcd_russian_charset_t {
RUSSIAN_CHARSET_WIN = 0,
RUSSIAN_CHARSET_KOI,
RUSSIAN_CHARSET_UTF8,
RUSSIAN_CHARSET_ALT
};
+typedef enum rcd_russian_charset_t rcd_russian_charset;
/*
-get_russian_charset
+rcdGetRussianCharset
Detects encoding of russian text passed in buf variable. Support
UTF-8, CP1251, CP866 and KOI8-R encoding.
@@ -29,10 +30,16 @@ get_russian_charset
3 - CP866
*/
-enum russian_charsets get_russian_charset(const char *buf,int len);
+rcd_russian_charset rcdGetRussianCharset(const char *buf, int len);
#ifdef __cplusplus
}
#endif
+/* Backward compatibility */
+#ifndef _LIBRCD_C
+# define russian_charsets rcd_russian_charset
+# define get_russian_charset rcdGetRussianCharset
+#endif /* ! _LIBRCD_C */
+
#endif /* _LIBRCD_H */