|
13 | 13 | * Portions Copyright (c) 1994, Regents of the University of California
|
14 | 14 | *
|
15 | 15 | * IDENTIFICATION
|
16 |
| - * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.26 2001/09/06 02:54:56 momjian Exp $ |
| 16 | + * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.27 2001/09/07 21:55:00 momjian Exp $ |
17 | 17 | *
|
18 | 18 | *-------------------------------------------------------------------------
|
19 | 19 | */
|
@@ -138,17 +138,32 @@ PgGetFileProc(ClientData cData, int direction)
|
138 | 138 |
|
139 | 139 | #endif
|
140 | 140 |
|
| 141 | +/* |
| 142 | + * The WatchProc and GetHandleProc are no-ops but must be present. |
| 143 | + */ |
| 144 | +static void |
| 145 | +PgWatchProc(ClientData instanceData, int mask) |
| 146 | +{ |
| 147 | +} |
| 148 | +static int |
| 149 | +PgGetHandleProc(ClientData instanceData, int direction, |
| 150 | + ClientData *handlePtr) |
| 151 | +{ |
| 152 | + return TCL_ERROR; |
| 153 | +} |
| 154 | + |
141 | 155 | Tcl_ChannelType Pg_ConnType = {
|
142 | 156 | "pgsql", /* channel type */
|
143 | 157 | NULL, /* blockmodeproc */
|
144 | 158 | PgDelConnectionId, /* closeproc */
|
145 | 159 | PgInputProc, /* inputproc */
|
146 | 160 | PgOutputProc, /* outputproc */
|
147 |
| - |
148 |
| - /* |
149 |
| - * Note the additional stuff can be left NULL, or is initialized |
150 |
| - * during a PgSetConnectionId |
151 |
| - */ |
| 161 | + NULL, /* SeekProc, Not used */ |
| 162 | + NULL, /* SetOptionProc, Not used */ |
| 163 | + NULL, /* GetOptionProc, Not used */ |
| 164 | + PgWatchProc, /* WatchProc, must be defined */ |
| 165 | + PgGetHandleProc, /* GetHandleProc, must be defined */ |
| 166 | + NULL /* Close2Proc, Not used */ |
152 | 167 | };
|
153 | 168 |
|
154 | 169 | /*
|
|
0 commit comments