Skip to content
Snippets Groups Projects
Unverified Commit 637772e5 authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #1815 from uckelman-sf/zlib_inflate_prototype_fix

zlib_inflate is used in more than one source file, so it should be in a header
parents c05a93a7 08c942f8
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* @param bytesConsumed -- return of the number of input bytes of compressed data used. * @param bytesConsumed -- return of the number of input bytes of compressed data used.
* @return 0 on success, a negative number on error * @return 0 on success, a negative number on error
*/ */
static int int
zlib_inflate(char *source, uint64_t sourceLen, char *dest, uint64_t destLen, uint64_t * uncompressedLength, unsigned long *bytesConsumed) // this is unsigned long because that's what zlib uses. zlib_inflate(char *source, uint64_t sourceLen, char *dest, uint64_t destLen, uint64_t * uncompressedLength, unsigned long *bytesConsumed) // this is unsigned long because that's what zlib uses.
{ {
......
...@@ -45,6 +45,13 @@ typedef enum { ...@@ -45,6 +45,13 @@ typedef enum {
#define COMPRESSION_UNIT_SIZE 65536U #define COMPRESSION_UNIT_SIZE 65536U
extern int zlib_inflate(char* source,
uint64_t sourceLen,
char* dest,
uint64_t destLen,
uint64_t* uncompressedLength,
unsigned long* bytesConsumed);
extern int decmpfs_file_read_zlib_attr(TSK_FS_FILE* fs_file, extern int decmpfs_file_read_zlib_attr(TSK_FS_FILE* fs_file,
char* buffer, char* buffer,
TSK_OFF_T attributeLength, TSK_OFF_T attributeLength,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment