|
PostgreSQL Source Code git master
|
#include "libpq-fe.h"

Go to the source code of this file.
Data Structures | |
| struct | PGEventRegister |
| struct | PGEventConnReset |
| struct | PGEventConnDestroy |
| struct | PGEventResultCreate |
| struct | PGEventResultCopy |
| struct | PGEventResultDestroy |
Typedefs | |
| typedef int(* | PGEventProc) (PGEventId evtId, void *evtInfo, void *passThrough) |
Enumerations | |
| enum | PGEventId { PGEVT_REGISTER , PGEVT_CONNRESET , PGEVT_CONNDESTROY , PGEVT_RESULTCREATE , PGEVT_RESULTCOPY , PGEVT_RESULTDESTROY } |
Functions | |
| int | PQregisterEventProc (PGconn *conn, PGEventProc proc, const char *name, void *passThrough) |
| int | PQsetInstanceData (PGconn *conn, PGEventProc proc, void *data) |
| void * | PQinstanceData (const PGconn *conn, PGEventProc proc) |
| int | PQresultSetInstanceData (PGresult *result, PGEventProc proc, void *data) |
| void * | PQresultInstanceData (const PGresult *result, PGEventProc proc) |
| int | PQfireResultCreateEvents (PGconn *conn, PGresult *res) |
| typedef int(* PGEventProc) (PGEventId evtId, void *evtInfo, void *passThrough) |
Definition at line 69 of file libpq-events.h.
| enum PGEventId |
| Enumerator | |
|---|---|
| PGEVT_REGISTER | |
| PGEVT_CONNRESET | |
| PGEVT_CONNDESTROY | |
| PGEVT_RESULTCREATE | |
| PGEVT_RESULTCOPY | |
| PGEVT_RESULTDESTROY | |
Definition at line 27 of file libpq-events.h.
Definition at line 185 of file libpq-events.c.
References conn, PGEventResultCreate::conn, pg_result::events, i, pg_result::nEvents, PGEvent::passThrough, PGEVT_RESULTCREATE, PGEvent::proc, PGEventResultCreate::result, and PGEvent::resultInitialized.
Referenced by PQgetResult().
| void * PQinstanceData | ( | const PGconn * | conn, |
| PGEventProc | proc | ||
| ) |
Definition at line 121 of file libpq-events.c.
References conn, PGEvent::data, pg_conn::events, i, pg_conn::nEvents, and PGEvent::proc.
| int PQregisterEventProc | ( | PGconn * | conn, |
| PGEventProc | proc, | ||
| const char * | name, | ||
| void * | passThrough | ||
| ) |
Definition at line 40 of file libpq-events.c.
References conn, PGEventRegister::conn, PGEvent::data, pg_conn::eventArraySize, pg_conn::events, free, i, malloc, name, PGEvent::name, pg_conn::nEvents, PGEvent::passThrough, PGEVT_REGISTER, PGEvent::proc, realloc, and PGEvent::resultInitialized.
| void * PQresultInstanceData | ( | const PGresult * | result, |
| PGEventProc | proc | ||
| ) |
Definition at line 165 of file libpq-events.c.
References PGEvent::data, pg_result::events, i, pg_result::nEvents, and PGEvent::proc.
| int PQresultSetInstanceData | ( | PGresult * | result, |
| PGEventProc | proc, | ||
| void * | data | ||
| ) |
Definition at line 142 of file libpq-events.c.
References PGEvent::data, data, pg_result::events, i, pg_result::nEvents, and PGEvent::proc.
| int PQsetInstanceData | ( | PGconn * | conn, |
| PGEventProc | proc, | ||
| void * | data | ||
| ) |
Definition at line 98 of file libpq-events.c.
References conn, PGEvent::data, data, pg_conn::events, i, pg_conn::nEvents, and PGEvent::proc.