diff options
author | jcid <devnull@localhost> | 2007-11-14 12:40:05 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-14 12:40:05 +0100 |
commit | a157f391577f9dcb986215e0f1ded06c825934b5 (patch) | |
tree | 2e51f6cf4a1c4bec9579a4050397b04c598b5ad4 /src/decode.h | |
parent | e329567b2984f1dee65d088002863355cf5b2a3b (diff) |
Added the missing decode.[ch]
Diffstat (limited to 'src/decode.h')
-rw-r--r-- | src/decode.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/decode.h b/src/decode.h new file mode 100644 index 00000000..2cdc29e7 --- /dev/null +++ b/src/decode.h @@ -0,0 +1,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, const char *inData, int inLen); + 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, const char *inData, int inLen); +void a_Decode_free(Decode *dc); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __DECODE_H__ */ |