Greenbone Vulnerability Management Libraries: util/compressutils.h Source File

Greenbone Vulnerability Management Libraries 23.1.1

compressutils.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
10
11#ifndef _GVM_UTIL_COMPRESSUTILS_H
12#define _GVM_UTIL_COMPRESSUTILS_H
13
14#include <stdio.h>
15
16void *
17 gvm_compress (const void *, unsigned long, unsigned long *);
18
19void *
20 gvm_compress_gzipheader (const void *, unsigned long, unsigned long *);
21
22void *
23 gvm_uncompress (const void *, unsigned long, unsigned long *);
24
25FILE *
26 gvm_gzip_open_file_reader (const char *);
27
28FILE *
29 gvm_gzip_open_file_reader_fd (int);
30
31#endif /* not _GVM_UTIL_COMPRESSUTILS_H */
gvm_gzip_open_file_reader_fd
FILE * gvm_gzip_open_file_reader_fd(int)
Opens a gzip file as a FILE* stream for reading and decompression.
Definition compressutils.c:319
gvm_compress
void * gvm_compress(const void *, unsigned long, unsigned long *)
Compresses data in src buffer.
Definition compressutils.c:42
gvm_uncompress
void * gvm_uncompress(const void *, unsigned long, unsigned long *)
Uncompresses data in src buffer.
Definition compressutils.c:111
gvm_gzip_open_file_reader
FILE * gvm_gzip_open_file_reader(const char *)
Opens a gzip file as a FILE* stream for reading and decompression.
Definition compressutils.c:287
gvm_compress_gzipheader
void * gvm_compress_gzipheader(const void *, unsigned long, unsigned long *)
Compresses data in src buffer, gzip format compatible.
Definition compressutils.c:182