summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/libpq-events.h
diff options
context:
space:
mode:
authorBruce Momjian2009-06-11 14:49:15 +0000
committerBruce Momjian2009-06-11 14:49:15 +0000
commitd7471402794266078953f1bd113dab4913d631a1 (patch)
tree618e392a84eaf837e00bf78f8694097b78fec227 /src/interfaces/libpq/libpq-events.h
parent4e86efb4e51b66ef57b3fe6f28576de23a1bf1c6 (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.h24
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 */