blob: 7f8045cd1a856acd9fcffed5f8fbe46e7c213999 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef __DECODE_H__
#define __DECODE_H__
#include "../dlib/dlib.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct _Decode Decode;
struct _Decode {
char *buffer;
Dstr *leftover;
void *state;
Dstr *(*decode) (Decode *dc, Dstr *input);
void (*free) (Decode *dc);
};
Decode *a_Decode_content_init(const char *format);
Decode *a_Decode_charset_init(const char *format);
Dstr *a_Decode_process(Decode *dc, Dstr *input);
void a_Decode_free(Decode *dc);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __DECODE_H__ */
|