summaryrefslogtreecommitdiff
path: root/module/module.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-10 18:43:09 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-10 18:43:09 +0000
commitf8d8287cdbd7da9cd9392bcddf04860a10fa598e (patch)
tree668b4cc601fdfd050a51095d4f9bbebef9eaffec /module/module.h
downloadiconv-f8d8287cdbd7da9cd9392bcddf04860a10fa598e.tar.gz
iconv-f8d8287cdbd7da9cd9392bcddf04860a10fa598e.tar.bz2
Import Iconv sources
svn path=/trunk/iconv/; revision=5677
Diffstat (limited to 'module/module.h')
-rw-r--r--module/module.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/module/module.h b/module/module.h
new file mode 100644
index 0000000..09dcfeb
--- /dev/null
+++ b/module/module.h
@@ -0,0 +1,24 @@
+#ifndef iconv_module_h_
+#define iconv_module_h_
+
+#ifndef DEBUG
+#define LOG(x)
+#else
+#define LOG(x) (printf(__FILE__ " %s %i: ", __func__, __LINE__), printf x, fputc('\n', stdout))
+#endif
+
+#define UNUSED(x) ((x) = (x))
+
+/* In iconv library */
+extern int iconv_eightbit_number_from_name(const char *name);
+extern short mibenum_from_name(const char *alias);
+extern const char *mibenum_to_name(short mibenum);
+
+/* in menu.c */
+size_t iconv_createmenu(size_t flags, char *buf, size_t buflen,
+ const char *selected, char *data, size_t *dlen);
+size_t iconv_decodemenu(size_t flags, void *menu, int *selections,
+ char *buf, size_t buflen);
+
+#endif
+