diff options
Diffstat (limited to 'src/zstream.h')
| -rw-r--r-- | src/zstream.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zstream.h b/src/zstream.h index fcc4a3148..cfe2b395f 100644 --- a/src/zstream.h +++ b/src/zstream.h @@ -23,6 +23,7 @@ typedef struct { git_zstream_t type; const char *in; size_t in_len; + int flush; int zerr; } git_zstream; @@ -35,6 +36,11 @@ int git_zstream_set_input(git_zstream *zstream, const void *in, size_t in_len); size_t git_zstream_suggest_output_len(git_zstream *zstream); +/* get as much output as is available in the input buffer */ +int git_zstream_get_output_chunk( + void *out, size_t *out_len, git_zstream *zstream); + +/* get all the output from the entire input buffer */ int git_zstream_get_output(void *out, size_t *out_len, git_zstream *zstream); bool git_zstream_done(git_zstream *zstream); |
