mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Add header comments to receivelog.h and streamutil.h.
This commit also adds the include guards to those header files. Michael Paquier
This commit is contained in:
parent
e414ba93ad
commit
9a2d94892f
@ -1,3 +1,17 @@
|
|||||||
|
/*-------------------------------------------------------------------------
|
||||||
|
*
|
||||||
|
* receivelog.h
|
||||||
|
*
|
||||||
|
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
|
||||||
|
*
|
||||||
|
* IDENTIFICATION
|
||||||
|
* src/bin/pg_basebackup/receivelog.h
|
||||||
|
*-------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef RECEIVELOG_H
|
||||||
|
#define RECEIVELOG_H
|
||||||
|
|
||||||
#include "libpq-fe.h"
|
#include "libpq-fe.h"
|
||||||
|
|
||||||
#include "access/xlogdefs.h"
|
#include "access/xlogdefs.h"
|
||||||
@ -18,3 +32,5 @@ extern bool ReceiveXlogStream(PGconn *conn,
|
|||||||
int standby_message_timeout,
|
int standby_message_timeout,
|
||||||
char *partial_suffix,
|
char *partial_suffix,
|
||||||
int fsync_interval);
|
int fsync_interval);
|
||||||
|
|
||||||
|
#endif /* RECEIVELOG_H */
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
/*-------------------------------------------------------------------------
|
||||||
|
*
|
||||||
|
* streamutil.h
|
||||||
|
*
|
||||||
|
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
|
||||||
|
*
|
||||||
|
* IDENTIFICATION
|
||||||
|
* src/bin/pg_basebackup/streamutil.h
|
||||||
|
*-------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef STREAMUTIL_H
|
||||||
|
#define STREAMUTIL_H
|
||||||
|
|
||||||
#include "libpq-fe.h"
|
#include "libpq-fe.h"
|
||||||
|
|
||||||
extern const char *progname;
|
extern const char *progname;
|
||||||
@ -22,3 +36,5 @@ extern bool feTimestampDifferenceExceeds(int64 start_time, int64 stop_time,
|
|||||||
int msec);
|
int msec);
|
||||||
extern void fe_sendint64(int64 i, char *buf);
|
extern void fe_sendint64(int64 i, char *buf);
|
||||||
extern int64 fe_recvint64(char *buf);
|
extern int64 fe_recvint64(char *buf);
|
||||||
|
|
||||||
|
#endif /* STREAMUTIL_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user