diff options
author | jcid <devnull@localhost> | 2007-11-27 00:24:52 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-27 00:24:52 +0100 |
commit | b0358c3dea7a0f34dc494d82be08ae814a480a50 (patch) | |
tree | 264e3369e8a55e7c41131e5519c7eee8cb8656f0 /src/decode.h | |
parent | 1f8d6679cf90bd66f514c8a9b1d5536358ca28d3 (diff) |
Made the decoder a filter by avoiding one copy pass.
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 2cdc29e7..7f8045cd 100644 --- a/src/decode.h +++ b/src/decode.h @@ -13,13 +13,13 @@ struct _Decode { char *buffer; Dstr *leftover; void *state; - Dstr *(*decode) (Decode *dc, const char *inData, int inLen); + 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, const char *inData, int inLen); +Dstr *a_Decode_process(Decode *dc, Dstr *input); void a_Decode_free(Decode *dc); #ifdef __cplusplus |