diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-10-16 16:28:29 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-10-16 16:28:29 +0200 |
commit | 538ceb14d0144fa44241bebcc512b9c7810ef82d (patch) | |
tree | 965817e0bda1c434150ba0c1295d13f35cd9b0f5 /include | |
parent | 9555d31fb7f2b98e795e747c26a5ce4617f8d711 (diff) | |
download | mupdf-538ceb14d0144fa44241bebcc512b9c7810ef82d.tar.xz |
Put buffer->eof handling in filter struct, not in individual process functions.
Diffstat (limited to 'include')
-rw-r--r-- | include/fitz/stm_filter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fitz/stm_filter.h b/include/fitz/stm_filter.h index b707838f..1ef52658 100644 --- a/include/fitz/stm_filter.h +++ b/include/fitz/stm_filter.h @@ -14,6 +14,7 @@ * produced -- if we actually produced any new data * consumed -- like above * count -- number of bytes produced in total since the beginning + * done -- remember if we've ever returned fz_iodone * * Most filters take fz_obj as a way to specify parameters. * In most cases, this is a dictionary that contains the same keys @@ -49,6 +50,7 @@ extern fz_error fz_kiodone; (*fp)->consumed = 0; \ (*fp)->produced = 0; \ (*fp)->count = 0; \ + (*fp)->done = 0; \ VAR = (TYPE*) *fp struct fz_filter_s @@ -59,6 +61,7 @@ struct fz_filter_s int consumed; int produced; int count; + int done; }; fz_error *fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out); |