diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-06-29 11:56:08 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-07-21 19:29:34 +1000 |
| commit | e6c290c3d145de81e23f406c84359860c4d6e632 (patch) | |
| tree | a53588f3c389e9d67227e64f63453bc486cb1199 /lib/uzlib/uzlib.h | |
| parent | 7f16bfca9f6d5b558b33b6f89566b50918449ed6 (diff) | |
lib/uzlib: Add a source_read_data var to pass to source_read_cb.
For better abstraction for users of this API.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'lib/uzlib/uzlib.h')
| -rw-r--r-- | lib/uzlib/uzlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/uzlib/uzlib.h b/lib/uzlib/uzlib.h index 030f7698c..16984a77d 100644 --- a/lib/uzlib/uzlib.h +++ b/lib/uzlib/uzlib.h @@ -84,7 +84,8 @@ typedef struct _uzlib_uncomp_t { also return -1 in case of EOF (or irrecoverable error). Note that besides returning the next byte, it may also update source and source_limit fields, thus allowing for buffered operation. */ - int (*source_read_cb)(struct _uzlib_uncomp_t *uncomp); + void *source_read_data; + int (*source_read_cb)(void *); unsigned int tag; unsigned int bitcount; |
