~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/interfaces/libpq/libpq-events.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/interfaces/libpq/libpq-events.c,v 1.4 2009/01/01 17:24:03 momjian Exp $
 
11
 *        $PostgreSQL: pgsql/src/interfaces/libpq/libpq-events.c,v 1.5 2009/06/11 14:49:14 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
40
40
PQregisterEventProc(PGconn *conn, PGEventProc proc,
41
41
                                        const char *name, void *passThrough)
42
42
{
43
 
        int i;
 
43
        int                     i;
44
44
        PGEventRegister regevt;
45
45
 
46
46
        if (!proc || !conn || !name || !*name)
54
54
 
55
55
        if (conn->nEvents >= conn->eventArraySize)
56
56
        {
57
 
                PGEvent *e;
58
 
                int newSize;
 
57
                PGEvent    *e;
 
58
                int                     newSize;
59
59
 
60
60
                newSize = conn->eventArraySize ? conn->eventArraySize * 2 : 8;
61
61
                if (conn->events)
97
97
int
98
98
PQsetInstanceData(PGconn *conn, PGEventProc proc, void *data)
99
99
{
100
 
        int i;
 
100
        int                     i;
101
101
 
102
102
        if (!conn || !proc)
103
103
                return FALSE;
120
120
void *
121
121
PQinstanceData(const PGconn *conn, PGEventProc proc)
122
122
{
123
 
        int i;
 
123
        int                     i;
124
124
 
125
125
        if (!conn || !proc)
126
126
                return NULL;
141
141
int
142
142
PQresultSetInstanceData(PGresult *result, PGEventProc proc, void *data)
143
143
{
144
 
        int i;
 
144
        int                     i;
145
145
 
146
146
        if (!result || !proc)
147
147
                return FALSE;
164
164
void *
165
165
PQresultInstanceData(const PGresult *result, PGEventProc proc)
166
166
{
167
 
        int i;
 
167
        int                     i;
168
168
 
169
169
        if (!result || !proc)
170
170
                return NULL;
184
184
int
185
185
PQfireResultCreateEvents(PGconn *conn, PGresult *res)
186
186
{
187
 
        int i;
 
187
        int                     i;
188
188
 
189
189
        if (!res)
190
190
                return FALSE;