summaryrefslogtreecommitdiff
path: root/libpq/libpq-events.h
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-30 22:37:25 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-12-06 15:11:04 +0300
commitf1f39911e0d2d88c98eae96a3eb14a53c664206f (patch)
tree4cf4e3a84d895f59323d3b6ab4bfab38b3cab489 /libpq/libpq-events.h
parentfc9499b8a7b7a3e350bfabf2cd6ae0bc13f04bea (diff)
Upgrade to 12.1
Diffstat (limited to 'libpq/libpq-events.h')
-rw-r--r--libpq/libpq-events.h94
1 files changed, 0 insertions, 94 deletions
diff --git a/libpq/libpq-events.h b/libpq/libpq-events.h
deleted file mode 100644
index e2bdb28..0000000
--- a/libpq/libpq-events.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * libpq-events.h
- * This file contains definitions that are useful to applications
- * that invoke the libpq "events" API, but are not interesting to
- * ordinary users of libpq.
- *
- * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- * src/interfaces/libpq/libpq-events.h
- *
- *-------------------------------------------------------------------------
- */
-
-#ifndef LIBPQ_EVENTS_H
-#define LIBPQ_EVENTS_H
-
-#include "libpq-fe.h"
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-/* Callback Event Ids */
-typedef enum
-{
- PGEVT_REGISTER,
- PGEVT_CONNRESET,
- PGEVT_CONNDESTROY,
- PGEVT_RESULTCREATE,
- PGEVT_RESULTCOPY,
- PGEVT_RESULTDESTROY
-} PGEventId;
-
-typedef struct
-{
- PGconn *conn;
-} PGEventRegister;
-
-typedef struct
-{
- PGconn *conn;
-} PGEventConnReset;
-
-typedef struct
-{
- PGconn *conn;
-} PGEventConnDestroy;
-
-typedef struct
-{
- PGconn *conn;
- PGresult *result;
-} PGEventResultCreate;
-
-typedef struct
-{
- const PGresult *src;
- PGresult *dest;
-} PGEventResultCopy;
-
-typedef struct
-{
- PGresult *result;
-} PGEventResultDestroy;
-
-typedef int (*PGEventProc) (PGEventId evtId, void *evtInfo, void *passThrough);
-
-/* Registers an event proc with the given PGconn. */
-extern int PQregisterEventProc(PGconn *conn, PGEventProc proc,
- const char *name, void *passThrough);
-
-/* Sets the PGconn instance data for the provided proc to data. */
-extern int PQsetInstanceData(PGconn *conn, PGEventProc proc, void *data);
-
-/* Gets the PGconn instance data for the provided proc. */
-extern void *PQinstanceData(const PGconn *conn, PGEventProc proc);
-
-/* Sets the PGresult instance data for the provided proc to data. */
-extern int PQresultSetInstanceData(PGresult *result, PGEventProc proc, void *data);
-
-/* Gets the PGresult instance data for the provided proc. */
-extern void *PQresultInstanceData(const PGresult *result, PGEventProc proc);
-
-/* Fires RESULTCREATE events for an application-created PGresult. */
-extern int PQfireResultCreateEvents(PGconn *conn, PGresult *res);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* LIBPQ_EVENTS_H */