mirror of
https://github.com/postgres/postgres.git
synced 2025-05-18 17:41:14 +03:00
Move private struct declaration to compress_io.c
Keep only the typedef in the header file.
This commit is contained in:
parent
0025b76f4f
commit
d7e5d151da
@ -32,6 +32,20 @@
|
|||||||
|
|
||||||
#include "compress_io.h"
|
#include "compress_io.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* typedef appears in compress_io.h */
|
||||||
|
struct CompressorState
|
||||||
|
{
|
||||||
|
CompressionAlgorithm comprAlg;
|
||||||
|
WriteFunc writeF;
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBZ
|
||||||
|
z_streamp zp;
|
||||||
|
char *zlibOut;
|
||||||
|
size_t zlibOutSize;
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
static const char *modulename = gettext_noop("compress_io");
|
static const char *modulename = gettext_noop("compress_io");
|
||||||
|
|
||||||
static void ParseCompressionOption(int compression, CompressionAlgorithm *alg,
|
static void ParseCompressionOption(int compression, CompressionAlgorithm *alg,
|
||||||
|
@ -44,17 +44,8 @@ typedef size_t (*WriteFunc)(ArchiveHandle *AH, const char *buf, size_t len);
|
|||||||
*/
|
*/
|
||||||
typedef size_t (*ReadFunc)(ArchiveHandle *AH, char **buf, size_t *buflen);
|
typedef size_t (*ReadFunc)(ArchiveHandle *AH, char **buf, size_t *buflen);
|
||||||
|
|
||||||
typedef struct _CompressorState
|
/* struct definition appears in compress_io.c */
|
||||||
{
|
typedef struct CompressorState CompressorState;
|
||||||
CompressionAlgorithm comprAlg;
|
|
||||||
WriteFunc writeF;
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBZ
|
|
||||||
z_streamp zp;
|
|
||||||
char *zlibOut;
|
|
||||||
size_t zlibOutSize;
|
|
||||||
#endif
|
|
||||||
} CompressorState;
|
|
||||||
|
|
||||||
extern CompressorState *AllocateCompressor(int compression, WriteFunc writeF);
|
extern CompressorState *AllocateCompressor(int compression, WriteFunc writeF);
|
||||||
extern void ReadDataFromArchive(ArchiveHandle *AH, int compression,
|
extern void ReadDataFromArchive(ArchiveHandle *AH, int compression,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user