Elijah Newren | d88dbaa | 2023-04-11 00:41:51 -0700 | [diff] [blame] | 1 | #ifndef GIT_ZLIB_H |
| 2 | #define GIT_ZLIB_H |
| 3 | |
| 4 | typedef struct git_zstream { |
| 5 | z_stream z; |
| 6 | unsigned long avail_in; |
| 7 | unsigned long avail_out; |
| 8 | unsigned long total_in; |
| 9 | unsigned long total_out; |
| 10 | unsigned char *next_in; |
| 11 | unsigned char *next_out; |
| 12 | } git_zstream; |
| 13 | |
| 14 | void git_inflate_init(git_zstream *); |
| 15 | void git_inflate_init_gzip_only(git_zstream *); |
| 16 | void git_inflate_end(git_zstream *); |
| 17 | int git_inflate(git_zstream *, int flush); |
| 18 | |
| 19 | void git_deflate_init(git_zstream *, int level); |
| 20 | void git_deflate_init_gzip(git_zstream *, int level); |
| 21 | void git_deflate_init_raw(git_zstream *, int level); |
| 22 | void git_deflate_end(git_zstream *); |
| 23 | int git_deflate_abort(git_zstream *); |
| 24 | int git_deflate_end_gently(git_zstream *); |
| 25 | int git_deflate(git_zstream *, int flush); |
| 26 | unsigned long git_deflate_bound(git_zstream *, unsigned long); |
| 27 | |
| 28 | #endif /* GIT_ZLIB_H */ |