diff --git a/tsk/fs/decmpfs.c b/tsk/fs/decmpfs.c index 1964f2bfcf19c5ce4fdf94c70bdc55e7b15226c3..7e92a7775ad6e76be8484c551366e5a9a3a4bb8e 100644 --- a/tsk/fs/decmpfs.c +++ b/tsk/fs/decmpfs.c @@ -34,7 +34,7 @@ * @param bytesConsumed -- return of the number of input bytes of compressed data used. * @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. { diff --git a/tsk/fs/decmpfs.h b/tsk/fs/decmpfs.h index b14688903db4eee705aadfda0ecb752b2b65c574..4ab40fd181472afbe135776ced488926dfd409c5 100644 --- a/tsk/fs/decmpfs.h +++ b/tsk/fs/decmpfs.h @@ -45,6 +45,13 @@ typedef enum { #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, char* buffer, TSK_OFF_T attributeLength,