diff options
author | jcid <devnull@localhost> | 2008-05-27 21:06:38 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-05-27 21:06:38 +0200 |
commit | a1c2d1742b37d65073b648f9c8483a17a5cf7af8 (patch) | |
tree | 868db5709b75aca1f217bece6c880e3bffff8f55 /src/decode.h | |
parent | 052aada7e513ef839be22e5d0ca24a464fac4085 (diff) |
- Made an input preserving decoder implementation.
Diffstat (limited to 'src/decode.h')
-rw-r--r-- | src/decode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decode.h b/src/decode.h index b3f56eb3..064177eb 100644 --- a/src/decode.h +++ b/src/decode.h @@ -13,14 +13,14 @@ struct _Decode { char *buffer; Dstr *leftover; void *state; - Dstr *(*decode) (Decode *dc, Dstr *input); + Dstr *(*decode) (Decode *dc, const char *instr, int inlen); void (*free) (Decode *dc); }; Decode *a_Decode_transfer_init(const char *format); Decode *a_Decode_content_init(const char *format); Decode *a_Decode_charset_init(const char *format); -Dstr *a_Decode_process(Decode *dc, Dstr *input); +Dstr *a_Decode_process(Decode *dc, const char *instr, int inlen); void a_Decode_free(Decode *dc); #ifdef __cplusplus |