Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d7e5d151
Commit
d7e5d151
authored
Dec 02, 2010
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move private struct declaration to compress_io.c
Keep only the typedef in the header file.
parent
0025b76f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
src/bin/pg_dump/compress_io.c
src/bin/pg_dump/compress_io.c
+14
-0
src/bin/pg_dump/compress_io.h
src/bin/pg_dump/compress_io.h
+2
-11
No files found.
src/bin/pg_dump/compress_io.c
View file @
d7e5d151
...
@@ -32,6 +32,20 @@
...
@@ -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
,
...
...
src/bin/pg_dump/compress_io.h
View file @
d7e5d151
...
@@ -44,17 +44,8 @@ typedef size_t (*WriteFunc)(ArchiveHandle *AH, const char *buf, size_t len);
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment