parser: Remove the unused attribute alignment from struct declaration_specifiers_t.
[cparser] / input.h
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
4  */
5 #ifndef INPUT_H
6 #define INPUT_H
7
8 #include <stdio.h>
9 #include "unicode.h"
10
11 typedef struct input_t input_t;
12
13 input_t *input_from_stream(FILE *stream, const char *encoding);
14 input_t *input_from_string(const char *string, const char *encoding);
15
16 /** Type for a function being called on an input (or encoding) errors. */
17 typedef void (*input_error_callback_func)(unsigned delta_lines,
18                                           unsigned delta_cols,
19                                           const char *message);
20
21 void set_input_error_callback(input_error_callback_func func);
22
23 size_t decode(input_t *input, utf32 *buffer, size_t buffer_size);
24
25 void input_free(input_t *input);
26
27 #endif