diff options
author | Alvaro Herrera | 2024-01-29 09:53:34 +0000 |
---|---|---|
committer | Alvaro Herrera | 2024-01-29 11:39:59 +0000 |
commit | 6d4565a05f3fb9b7a439e7ecfc2be68bf4dabf48 (patch) | |
tree | 129f87835077a9b9fd1944a23271e2b056316231 /src/interfaces/libpq/libpq-int.h | |
parent | cf765ff824b8fef31f3c6b5489d2f9985909f6a9 (diff) |
libpq: Move cancellation related functions to fe-cancel.c
In follow up commits we'll add more functions related to query
cancellations. This groups those all together instead of mixing them
with the other functions in fe-connect.c.
The formerly static parse_int_param() function had to be exported to
other libpq users, so it's been renamed pqParseIntParam() and moved to a
more reasonable place within fe-connect.c (rather than randomly between
various keepalive-related routines).
Author: Jelte Fennema-Nio <[email protected]>
Discussion: https://postgr.es/m/AM5PR83MB0178D3B31CA1B6EC4A8ECC42F7529@AM5PR83MB0178.EURPRD83.prod.outlook.com
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index f0143726bbc..ff8e0dce776 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -675,9 +675,14 @@ extern char *const pgresStatus[]; /* === in fe-connect.c === */ extern void pqDropConnection(PGconn *conn, bool flushInput); +#if defined(WIN32) && defined(SIO_KEEPALIVE_VALS) +extern int pqSetKeepalivesWin32(pgsocket sock, int idle, int interval); +#endif extern int pqPacketSend(PGconn *conn, char pack_type, const void *buf, size_t buf_len); extern bool pqGetHomeDirectory(char *buf, int bufsize); +extern bool pqParseIntParam(const char *value, int *result, PGconn *conn, + const char *context); extern pgthreadlock_t pg_g_threadlock; |