Commit cf4263cc authored by Michael Paquier's avatar Michael Paquier

Switch position of some declarations in libpq.h

This makes the header more consistent with the surroundings, with
declarations associated to a given file grouped together.

Author: Daniel Gustafsson
Discussion: https://postgr.es/m/20190608012439.GB7228@paquier.xyz
parent b880e22d
...@@ -53,6 +53,8 @@ extern const PGDLLIMPORT PQcommMethods *PqCommMethods; ...@@ -53,6 +53,8 @@ extern const PGDLLIMPORT PQcommMethods *PqCommMethods;
/* /*
* prototypes for functions in pqcomm.c * prototypes for functions in pqcomm.c
*/ */
extern WaitEventSet *FeBeWaitSet;
extern int StreamServerPort(int family, char *hostName, extern int StreamServerPort(int family, char *hostName,
unsigned short portNumber, char *unixSocketDir, unsigned short portNumber, char *unixSocketDir,
pgsocket ListenSocket[], int MaxListen); pgsocket ListenSocket[], int MaxListen);
...@@ -83,6 +85,9 @@ extern char *ssl_crl_file; ...@@ -83,6 +85,9 @@ extern char *ssl_crl_file;
extern char *ssl_dh_params_file; extern char *ssl_dh_params_file;
extern char *ssl_passphrase_command; extern char *ssl_passphrase_command;
extern bool ssl_passphrase_command_supports_reload; extern bool ssl_passphrase_command_supports_reload;
#ifdef USE_SSL
extern bool ssl_loaded_verify_locations;
#endif
extern int secure_initialize(bool isServerStart); extern int secure_initialize(bool isServerStart);
extern bool secure_loaded_verify_locations(void); extern bool secure_loaded_verify_locations(void);
...@@ -93,14 +98,14 @@ extern ssize_t secure_read(Port *port, void *ptr, size_t len); ...@@ -93,14 +98,14 @@ extern ssize_t secure_read(Port *port, void *ptr, size_t len);
extern ssize_t secure_write(Port *port, void *ptr, size_t len); extern ssize_t secure_write(Port *port, void *ptr, size_t len);
extern ssize_t secure_raw_read(Port *port, void *ptr, size_t len); extern ssize_t secure_raw_read(Port *port, void *ptr, size_t len);
extern ssize_t secure_raw_write(Port *port, const void *ptr, size_t len); extern ssize_t secure_raw_write(Port *port, const void *ptr, size_t len);
/*
* prototypes for functions in be-secure-gssapi.c
*/
#ifdef ENABLE_GSS #ifdef ENABLE_GSS
extern ssize_t secure_open_gssapi(Port *port); extern ssize_t secure_open_gssapi(Port *port);
#endif #endif
extern bool ssl_loaded_verify_locations;
extern WaitEventSet *FeBeWaitSet;
/* GUCs */ /* GUCs */
extern char *SSLCipherSuites; extern char *SSLCipherSuites;
extern char *SSLECDHCurve; extern char *SSLECDHCurve;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment