Use conv_buffer interface.
[gedcom-parse.git] / gedcom / encoding.h
index 6623e61d3b8e15a7f8463eb9d45677408567aea6..e80616f5923333dc90cbe92bf127d43bcc05e7e7 100644 (file)
 #ifndef __ENCODING_H
 #define __ENCODING_H
 
+#include "utf8.h"
+
 typedef enum _ENC {
   ONE_BYTE = 0,
   TWO_BYTE_HILO = 1,
   TWO_BYTE_LOHI = 2
 } ENCODING;
 
-int open_conv_to_internal(char* fromcode);
+int open_conv_to_internal(const char* fromcode);
 void close_conv_to_internal();
-char* to_internal(char* str, size_t len,
-                 char* output_buffer, size_t out_len);
+char* to_internal(const char* str, size_t len, struct conv_buffer *output_buf);
 void init_encodings();
 void set_encoding_width(ENCODING enc);
+void update_gconv_search_path();
 
 #endif /* __ENCODING_H */