aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-charset-map.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-charset-map.h')
-rw-r--r--camel/camel-charset-map.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/camel/camel-charset-map.h b/camel/camel-charset-map.h
index d5ce0799b8..53ba4af9d9 100644
--- a/camel/camel-charset-map.h
+++ b/camel/camel-charset-map.h
@@ -21,8 +21,18 @@
#ifndef _CAMEL_CHARSET_MAP_H
#define _CAMEL_CHARSET_MAP_H
-unsigned int camel_charset_mask(unsigned int c);
+typedef struct _CamelCharset CamelCharset;
+
+struct _CamelCharset {
+ unsigned int mask;
+ int level;
+};
+
+void camel_charset_init(CamelCharset *);
+void camel_charset_step(CamelCharset *, const char *in, int len);
+const char *camel_charset_best_name(CamelCharset *);
+
+/* helper function */
const char *camel_charset_best(const char *in, int len);
-const char *camel_charset_best_mask(unsigned int mask);
#endif /* ! _CAMEL_CHARSET_MAP_H */