diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2017-04-24 12:47:24 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2017-04-24 12:47:24 +0200 |
commit | a7c7119009a65f2bf554faab19583650bf5fa0f7 (patch) | |
tree | d5692bdb31cf4cfc379746e3627b9cbe1eaede93 /functable.h | |
parent | 3443bd6a0085b6a8af51b80a4de42d411e2312ab (diff) |
- Add adler32 to functable
- Add missing call to functableinit from inflateinit
- Fix external direct calls to adler32 functions without calling functableinit
Diffstat (limited to 'functable.h')
-rw-r--r-- | functable.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/functable.h b/functable.h index a867fa2..b7d026e 100644 --- a/functable.h +++ b/functable.h @@ -8,11 +8,17 @@ #include "deflate.h" +uint32_t adler32_c(uint32_t adler, const unsigned char *buf, size_t len); + void functableInit(); struct functable_s { void (* fill_window) (deflate_state *s); Pos (* insert_string) (deflate_state *const s, const Pos str, unsigned int count); -} functable; + uint32_t (* adler32) (uint32_t adler, const unsigned char *buf, size_t len); +}; + +extern struct functable_s functable; + #endif |