7 typedef struct input_t input_t;
9 input_t *input_from_stream(FILE *stream, const char *encoding);
10 input_t *input_from_string(const char *string, const char *encoding);
12 /** Type for a function being called on an input (or encoding) errors. */
13 typedef void (*input_error_callback_func)(unsigned delta_lines,
17 void set_input_error_callback(input_error_callback_func func);
19 size_t decode(input_t *input, utf32 *buffer, size_t buffer_size);
21 void input_free(input_t *input);