diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-12-02 17:38:49 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-12-02 17:45:13 -0300 |
commit | d7e5d151daa2d5fe096953ae0b3530707b7c87f5 (patch) | |
tree | 616b3d095b36032c6f66b5c9bdfd8590fac34a8b /src | |
parent | 0025b76f4fc52bed4e8ad2623ec6b9821a4e936c (diff) | |
download | postgresql-d7e5d151daa2d5fe096953ae0b3530707b7c87f5.tar.gz postgresql-d7e5d151daa2d5fe096953ae0b3530707b7c87f5.zip |
Move private struct declaration to compress_io.c
Keep only the typedef in the header file.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/compress_io.c | 14 | ||||
-rw-r--r-- | src/bin/pg_dump/compress_io.h | 13 |
2 files changed, 16 insertions, 11 deletions
diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c index d9288108d61..825334fd5e4 100644 --- a/src/bin/pg_dump/compress_io.c +++ b/src/bin/pg_dump/compress_io.c @@ -32,6 +32,20 @@ #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 void ParseCompressionOption(int compression, CompressionAlgorithm *alg, diff --git a/src/bin/pg_dump/compress_io.h b/src/bin/pg_dump/compress_io.h index bbf450a3890..26930cdb26c 100644 --- a/src/bin/pg_dump/compress_io.h +++ b/src/bin/pg_dump/compress_io.h @@ -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 struct _CompressorState -{ - CompressionAlgorithm comprAlg; - WriteFunc writeF; - -#ifdef HAVE_LIBZ - z_streamp zp; - char *zlibOut; - size_t zlibOutSize; -#endif -} CompressorState; +/* struct definition appears in compress_io.c */ +typedef struct CompressorState CompressorState; extern CompressorState *AllocateCompressor(int compression, WriteFunc writeF); extern void ReadDataFromArchive(ArchiveHandle *AH, int compression, |