1/*-------------------------------------------------------------------------
4 * This file contains definitions that are useful to applications
5 * that invoke the libpq "events" API, but are not interesting to
6 * ordinary users of libpq.
8 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/interfaces/libpq/libpq-events.h
13 *-------------------------------------------------------------------------
26/* Callback Event Ids */
71/* Registers an event proc with the given PGconn. */
73 const char *
name,
void *passThrough);
75/* Sets the PGconn instance data for the provided proc to data. */
78/* Gets the PGconn instance data for the provided proc. */
81/* Sets the PGresult instance data for the provided proc to data. */
84/* Gets the PGresult instance data for the provided proc. */
87/* Fires RESULTCREATE events for an application-created PGresult. */
94#endif /* LIBPQ_EVENTS_H */
int PQresultSetInstanceData(PGresult *result, PGEventProc proc, void *data)
int PQfireResultCreateEvents(PGconn *conn, PGresult *res)
int PQregisterEventProc(PGconn *conn, PGEventProc proc, const char *name, void *passThrough)
int(* PGEventProc)(PGEventId evtId, void *evtInfo, void *passThrough)
void * PQresultInstanceData(const PGresult *result, PGEventProc proc)
int PQsetInstanceData(PGconn *conn, PGEventProc proc, void *data)
void * PQinstanceData(const PGconn *conn, PGEventProc proc)