~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

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

  • 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
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
9
9
 * Portions Copyright (c) 1994, Regents of the University of California
10
10
 *
11
 
 * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-events.h,v 1.3 2009/01/01 17:24:03 momjian Exp $
 
11
 * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-events.h,v 1.4 2009/06/11 14:49:14 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
24
24
#endif
25
25
 
26
26
/* Callback Event Ids */
27
 
typedef enum
 
27
                        typedef enum
28
28
{
29
29
        PGEVT_REGISTER,
30
30
        PGEVT_CONNRESET,
36
36
 
37
37
typedef struct
38
38
{
39
 
        PGconn *conn;
 
39
        PGconn     *conn;
40
40
} PGEventRegister;
41
41
 
42
42
typedef struct
43
43
{
44
 
        PGconn *conn;
 
44
        PGconn     *conn;
45
45
} PGEventConnReset;
46
46
 
47
47
typedef struct
48
48
{
49
 
        PGconn *conn;
 
49
        PGconn     *conn;
50
50
} PGEventConnDestroy;
51
51
 
52
52
typedef struct
53
53
{
54
 
        PGconn *conn;
55
 
        PGresult *result;
 
54
        PGconn     *conn;
 
55
        PGresult   *result;
56
56
} PGEventResultCreate;
57
57
 
58
58
typedef struct
59
59
{
60
60
        const PGresult *src;
61
 
        PGresult *dest;
 
61
        PGresult   *dest;
62
62
} PGEventResultCopy;
63
63
 
64
64
typedef struct
65
65
{
66
 
        PGresult *result;
 
66
        PGresult   *result;
67
67
} PGEventResultDestroy;
68
68
 
69
69
typedef int (*PGEventProc) (PGEventId evtId, void *evtInfo, void *passThrough);
70
70
 
71
71
/* Registers an event proc with the given PGconn. */
72
 
extern int      PQregisterEventProc(PGconn *conn, PGEventProc proc,
73
 
                                                                const char *name, void *passThrough);
 
72
extern int PQregisterEventProc(PGconn *conn, PGEventProc proc,
 
73
                                        const char *name, void *passThrough);
74
74
 
75
75
/* Sets the PGconn instance data for the provided proc to data. */
76
76
extern int      PQsetInstanceData(PGconn *conn, PGEventProc proc, void *data);
91
91
}
92
92
#endif
93
93
 
94
 
#endif /* LIBPQ_EVENTS_H */
 
94
#endif   /* LIBPQ_EVENTS_H */