diff options
Diffstat (limited to 'include/convert.h')
-rw-r--r-- | include/convert.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/convert.h b/include/convert.h index a4f1b410..2800845c 100644 --- a/include/convert.h +++ b/include/convert.h @@ -5,13 +5,20 @@ #ifdef CONVERT -#define CONV_NORMAL 0 -#define CONV_GB 1 -#define CONV_UTF8 2 +enum ConvertMode { + CONV_NORMAL, + CONV_GB, + CONV_UTF8 +}; typedef ssize_t (*read_write_type)(int, void *, size_t); typedef ssize_t (*convert_type)(void *, ssize_t); -// extern int bbs_convert_type; + +extern read_write_type write_type; +extern read_write_type read_type; +extern convert_type input_type; + +extern void init_convert(); #endif // CONVERT #endif // _BBS_CONVERT_H |