diff options
| author | Bruce Momjian | 2009-06-11 14:49:15 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2009-06-11 14:49:15 +0000 |
| commit | d7471402794266078953f1bd113dab4913d631a1 (patch) | |
| tree | 618e392a84eaf837e00bf78f8694097b78fec227 /src/interfaces/libpq/libpq-events.h | |
| parent | 4e86efb4e51b66ef57b3fe6f28576de23a1bf1c6 (diff) | |
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
Diffstat (limited to 'src/interfaces/libpq/libpq-events.h')
| -rw-r--r-- | src/interfaces/libpq/libpq-events.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/interfaces/libpq/libpq-events.h b/src/interfaces/libpq/libpq-events.h index 8335439bdff..9340211e237 100644 --- a/src/interfaces/libpq/libpq-events.h +++ b/src/interfaces/libpq/libpq-events.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-events.h,v 1.3 2009/01/01 17:24:03 momjian Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-events.h,v 1.4 2009/06/11 14:49:14 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -24,7 +24,7 @@ extern "C" #endif /* Callback Event Ids */ -typedef enum + typedef enum { PGEVT_REGISTER, PGEVT_CONNRESET, @@ -36,41 +36,41 @@ typedef enum typedef struct { - PGconn *conn; + PGconn *conn; } PGEventRegister; typedef struct { - PGconn *conn; + PGconn *conn; } PGEventConnReset; typedef struct { - PGconn *conn; + PGconn *conn; } PGEventConnDestroy; typedef struct { - PGconn *conn; - PGresult *result; + PGconn *conn; + PGresult *result; } PGEventResultCreate; typedef struct { const PGresult *src; - PGresult *dest; + PGresult *dest; } PGEventResultCopy; typedef struct { - PGresult *result; + 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); +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); @@ -91,4 +91,4 @@ extern int PQfireResultCreateEvents(PGconn *conn, PGresult *res); } #endif -#endif /* LIBPQ_EVENTS_H */ +#endif /* LIBPQ_EVENTS_H */ |
