@@ -143,36 +143,36 @@ typedef enum T_Action
143
143
ACT_RESTORE
144
144
} T_Action ;
145
145
146
- typedef void (* ClosePtr ) (ArchiveHandle * AH );
147
- typedef void (* ReopenPtr ) (ArchiveHandle * AH );
148
- typedef void (* ArchiveEntryPtr ) (ArchiveHandle * AH , TocEntry * te );
146
+ typedef void (* ClosePtrType ) (ArchiveHandle * AH );
147
+ typedef void (* ReopenPtrType ) (ArchiveHandle * AH );
148
+ typedef void (* ArchiveEntryPtrType ) (ArchiveHandle * AH , TocEntry * te );
149
149
150
- typedef void (* StartDataPtr ) (ArchiveHandle * AH , TocEntry * te );
151
- typedef void (* WriteDataPtr ) (ArchiveHandle * AH , const void * data , size_t dLen );
152
- typedef void (* EndDataPtr ) (ArchiveHandle * AH , TocEntry * te );
150
+ typedef void (* StartDataPtrType ) (ArchiveHandle * AH , TocEntry * te );
151
+ typedef void (* WriteDataPtrType ) (ArchiveHandle * AH , const void * data , size_t dLen );
152
+ typedef void (* EndDataPtrType ) (ArchiveHandle * AH , TocEntry * te );
153
153
154
- typedef void (* StartBlobsPtr ) (ArchiveHandle * AH , TocEntry * te );
155
- typedef void (* StartBlobPtr ) (ArchiveHandle * AH , TocEntry * te , Oid oid );
156
- typedef void (* EndBlobPtr ) (ArchiveHandle * AH , TocEntry * te , Oid oid );
157
- typedef void (* EndBlobsPtr ) (ArchiveHandle * AH , TocEntry * te );
154
+ typedef void (* StartBlobsPtrType ) (ArchiveHandle * AH , TocEntry * te );
155
+ typedef void (* StartBlobPtrType ) (ArchiveHandle * AH , TocEntry * te , Oid oid );
156
+ typedef void (* EndBlobPtrType ) (ArchiveHandle * AH , TocEntry * te , Oid oid );
157
+ typedef void (* EndBlobsPtrType ) (ArchiveHandle * AH , TocEntry * te );
158
158
159
- typedef int (* WriteBytePtr ) (ArchiveHandle * AH , const int i );
160
- typedef int (* ReadBytePtr ) (ArchiveHandle * AH );
161
- typedef void (* WriteBufPtr ) (ArchiveHandle * AH , const void * c , size_t len );
162
- typedef void (* ReadBufPtr ) (ArchiveHandle * AH , void * buf , size_t len );
163
- typedef void (* SaveArchivePtr ) (ArchiveHandle * AH );
164
- typedef void (* WriteExtraTocPtr ) (ArchiveHandle * AH , TocEntry * te );
165
- typedef void (* ReadExtraTocPtr ) (ArchiveHandle * AH , TocEntry * te );
166
- typedef void (* PrintExtraTocPtr ) (ArchiveHandle * AH , TocEntry * te );
167
- typedef void (* PrintTocDataPtr ) (ArchiveHandle * AH , TocEntry * te );
159
+ typedef int (* WriteBytePtrType ) (ArchiveHandle * AH , const int i );
160
+ typedef int (* ReadBytePtrType ) (ArchiveHandle * AH );
161
+ typedef void (* WriteBufPtrType ) (ArchiveHandle * AH , const void * c , size_t len );
162
+ typedef void (* ReadBufPtrType ) (ArchiveHandle * AH , void * buf , size_t len );
163
+ typedef void (* SaveArchivePtrType ) (ArchiveHandle * AH );
164
+ typedef void (* WriteExtraTocPtrType ) (ArchiveHandle * AH , TocEntry * te );
165
+ typedef void (* ReadExtraTocPtrType ) (ArchiveHandle * AH , TocEntry * te );
166
+ typedef void (* PrintExtraTocPtrType ) (ArchiveHandle * AH , TocEntry * te );
167
+ typedef void (* PrintTocDataPtrType ) (ArchiveHandle * AH , TocEntry * te );
168
168
169
- typedef void (* ClonePtr ) (ArchiveHandle * AH );
170
- typedef void (* DeClonePtr ) (ArchiveHandle * AH );
169
+ typedef void (* ClonePtrType ) (ArchiveHandle * AH );
170
+ typedef void (* DeClonePtrType ) (ArchiveHandle * AH );
171
171
172
- typedef int (* WorkerJobDumpPtr ) (ArchiveHandle * AH , TocEntry * te );
173
- typedef int (* WorkerJobRestorePtr ) (ArchiveHandle * AH , TocEntry * te );
172
+ typedef int (* WorkerJobDumpPtrType ) (ArchiveHandle * AH , TocEntry * te );
173
+ typedef int (* WorkerJobRestorePtrType ) (ArchiveHandle * AH , TocEntry * te );
174
174
175
- typedef size_t (* CustomOutPtr ) (ArchiveHandle * AH , const void * buf , size_t len );
175
+ typedef size_t (* CustomOutPtrType ) (ArchiveHandle * AH , const void * buf , size_t len );
176
176
177
177
typedef enum
178
178
{
@@ -242,39 +242,39 @@ struct _archiveHandle
242
242
size_t lookaheadLen ; /* Length of data in lookahead */
243
243
pgoff_t lookaheadPos ; /* Current read position in lookahead buffer */
244
244
245
- ArchiveEntryPtr ArchiveEntryPtr ; /* Called for each metadata object */
246
- StartDataPtr StartDataPtr ; /* Called when table data is about to be
245
+ ArchiveEntryPtrType ArchiveEntryPtr ; /* Called for each metadata object */
246
+ StartDataPtrType StartDataPtr ; /* Called when table data is about to be
247
247
* dumped */
248
- WriteDataPtr WriteDataPtr ; /* Called to send some table data to the
248
+ WriteDataPtrType WriteDataPtr ; /* Called to send some table data to the
249
249
* archive */
250
- EndDataPtr EndDataPtr ; /* Called when table data dump is finished */
251
- WriteBytePtr WriteBytePtr ; /* Write a byte to output */
252
- ReadBytePtr ReadBytePtr ; /* Read a byte from an archive */
253
- WriteBufPtr WriteBufPtr ; /* Write a buffer of output to the archive */
254
- ReadBufPtr ReadBufPtr ; /* Read a buffer of input from the archive */
255
- ClosePtr ClosePtr ; /* Close the archive */
256
- ReopenPtr ReopenPtr ; /* Reopen the archive */
257
- WriteExtraTocPtr WriteExtraTocPtr ; /* Write extra TOC entry data
250
+ EndDataPtrType EndDataPtr ; /* Called when table data dump is finished */
251
+ WriteBytePtrType WriteBytePtr ; /* Write a byte to output */
252
+ ReadBytePtrType ReadBytePtr ; /* Read a byte from an archive */
253
+ WriteBufPtrType WriteBufPtr ; /* Write a buffer of output to the archive */
254
+ ReadBufPtrType ReadBufPtr ; /* Read a buffer of input from the archive */
255
+ ClosePtrType ClosePtr ; /* Close the archive */
256
+ ReopenPtrType ReopenPtr ; /* Reopen the archive */
257
+ WriteExtraTocPtrType WriteExtraTocPtr ; /* Write extra TOC entry data
258
258
* associated with the current archive
259
259
* format */
260
- ReadExtraTocPtr ReadExtraTocPtr ; /* Read extr info associated with
260
+ ReadExtraTocPtrType ReadExtraTocPtr ; /* Read extr info associated with
261
261
* archie format */
262
- PrintExtraTocPtr PrintExtraTocPtr ; /* Extra TOC info for format */
263
- PrintTocDataPtr PrintTocDataPtr ;
262
+ PrintExtraTocPtrType PrintExtraTocPtr ; /* Extra TOC info for format */
263
+ PrintTocDataPtrType PrintTocDataPtr ;
264
264
265
- StartBlobsPtr StartBlobsPtr ;
266
- EndBlobsPtr EndBlobsPtr ;
267
- StartBlobPtr StartBlobPtr ;
268
- EndBlobPtr EndBlobPtr ;
265
+ StartBlobsPtrType StartBlobsPtr ;
266
+ EndBlobsPtrType EndBlobsPtr ;
267
+ StartBlobPtrType StartBlobPtr ;
268
+ EndBlobPtrType EndBlobPtr ;
269
269
270
- SetupWorkerPtr SetupWorkerPtr ;
271
- WorkerJobDumpPtr WorkerJobDumpPtr ;
272
- WorkerJobRestorePtr WorkerJobRestorePtr ;
270
+ SetupWorkerPtrType SetupWorkerPtr ;
271
+ WorkerJobDumpPtrType WorkerJobDumpPtr ;
272
+ WorkerJobRestorePtrType WorkerJobRestorePtr ;
273
273
274
- ClonePtr ClonePtr ; /* Clone format-specific fields */
275
- DeClonePtr DeClonePtr ; /* Clean up cloned fields */
274
+ ClonePtrType ClonePtr ; /* Clone format-specific fields */
275
+ DeClonePtrType DeClonePtr ; /* Clean up cloned fields */
276
276
277
- CustomOutPtr CustomOutPtr ; /* Alternative script output routine */
277
+ CustomOutPtrType CustomOutPtr ; /* Alternative script output routine */
278
278
279
279
/* Stuff for direct DB connection */
280
280
char * archdbname ; /* DB name *read* from archive */
0 commit comments