59
49
/* Initialize the libsvn_swig_py library. */
60
SVN_SWIG_SWIGUTIL_EXPORT
61
50
apr_status_t svn_swig_py_initialize(void);
65
54
/* Functions to manage python's global interpreter lock */
66
SVN_SWIG_SWIGUTIL_EXPORT
67
55
void svn_swig_py_release_py_lock(void);
69
SVN_SWIG_SWIGUTIL_EXPORT
70
57
void svn_swig_py_acquire_py_lock(void);
73
60
/*** Automatic Pool Management Functions ***/
75
62
/* Set the application pool */
76
SVN_SWIG_SWIGUTIL_EXPORT
77
63
void svn_swig_py_set_application_pool(PyObject *py_pool, apr_pool_t *pool);
79
65
/* Clear the application pool */
80
SVN_SWIG_SWIGUTIL_EXPORT
81
66
void svn_swig_py_clear_application_pool(void);
83
68
/* Get the pool argument from the last element of tuple args.
101
84
/*** SWIG Wrappers ***/
103
86
/* Wrapper for SWIG_NewPointerObj */
104
SVN_SWIG_SWIGUTIL_EXPORT
105
PyObject *svn_swig_NewPointerObj(void *obj, swig_type_info *type,
87
PyObject *svn_swig_py_new_pointer_obj(void *obj, swig_type_info *type,
106
88
PyObject *pool, PyObject *args);
108
90
/* Wrapper for SWIG_ConvertPtr */
109
SVN_SWIG_SWIGUTIL_EXPORT
110
int svn_swig_ConvertPtr(PyObject *input, void **obj, swig_type_info *type);
91
int svn_swig_py_convert_ptr(PyObject *input, void **obj, swig_type_info *type);
112
93
/* Wrapper for SWIG_MustGetPtr */
113
SVN_SWIG_SWIGUTIL_EXPORT
114
void *svn_swig_MustGetPtr(void *input, swig_type_info *type, int argnum);
94
void *svn_swig_py_must_get_ptr(void *input, swig_type_info *type, int argnum);
116
96
/*** Functions to expose a custom SubversionException ***/
118
98
/* raise a subversion exception, created from a normal subversion
119
99
error. consume the error. */
120
SVN_SWIG_SWIGUTIL_EXPORT
121
100
void svn_swig_py_svn_exception(svn_error_t *err);
125
104
/* helper function to convert an apr_hash_t* (char* -> svnstring_t*) to
127
SVN_SWIG_SWIGUTIL_EXPORT
128
106
PyObject *svn_swig_py_prophash_to_dict(apr_hash_t *hash);
130
108
/* helper function to convert an apr_hash_t* (svn_revnum_t* -> const
131
109
char *) to a Python dict */
132
SVN_SWIG_SWIGUTIL_EXPORT
133
110
PyObject *svn_swig_py_locationhash_to_dict(apr_hash_t *hash);
135
112
/* helper function to convert an apr_array_header_t* (of
136
113
svn_merge_range_t *) to a Python list */
137
SVN_SWIG_SWIGUTIL_EXPORT
138
114
PyObject *svn_swig_py_pointerlist_to_list(apr_array_header_t *list,
139
115
swig_type_info *type,
140
116
PyObject *py_pool);
142
118
/* helper function to convert an apr_hash_t* (const char *->array of
143
119
svn_merge_range_t *) to a Python dict */
144
SVN_SWIG_SWIGUTIL_EXPORT
145
120
PyObject *svn_swig_py_mergeinfo_to_dict(apr_hash_t *hash,
146
121
swig_type_info *type,
147
122
PyObject *py_pool);
149
124
/* helper function to convert an apr_hash_t* (const char *->hash of
150
125
mergeinfo hashes) to a Python dict */
151
SVN_SWIG_SWIGUTIL_EXPORT
152
126
PyObject *svn_swig_py_mergeinfo_catalog_to_dict(apr_hash_t *hash,
153
127
swig_type_info *type,
154
128
PyObject *py_pool);
156
130
/* helper function to convert an apr_hash_t *(const char *->const char
157
131
*) to a Python dict */
159
SVN_SWIG_SWIGUTIL_EXPORT
160
133
PyObject *svn_swig_py_stringhash_to_dict(apr_hash_t *hash);
162
135
/* convert a hash of 'const char *' -> TYPE into a Python dict */
163
SVN_SWIG_SWIGUTIL_EXPORT
164
136
PyObject *svn_swig_py_convert_hash(apr_hash_t *hash, swig_type_info *type,
165
137
PyObject *py_pool);
167
139
/* helper function to convert a 'char **' into a Python list of string
169
SVN_SWIG_SWIGUTIL_EXPORT
170
141
PyObject *svn_swig_py_c_strings_to_list(char **strings);
172
143
/* helper function to convert an array of 'const char *' to a Python list
173
144
of string objects */
174
SVN_SWIG_SWIGUTIL_EXPORT
175
145
PyObject *svn_swig_py_array_to_list(const apr_array_header_t *strings);
177
147
/* helper function to convert a hash mapping char * to
178
148
* svn_log_changed_path_t * to a Python dict mapping str to str. */
179
SVN_SWIG_SWIGUTIL_EXPORT
180
149
PyObject *svn_swig_py_changed_path_hash_to_dict(apr_hash_t *hash);
182
151
/* helper function to convert a hash mapping char * to
183
152
* svn_log_changed_path2_t * to a Python dict mapping str to str. */
184
SVN_SWIG_SWIGUTIL_EXPORT
185
153
PyObject *svn_swig_py_changed_path2_hash_to_dict(apr_hash_t *hash);
187
155
/* helper function to convert an array of 'svn_revnum_t' to a Python list
188
156
of int objects */
189
SVN_SWIG_SWIGUTIL_EXPORT
190
157
PyObject *svn_swig_py_revarray_to_list(const apr_array_header_t *revs);
192
159
/* helper function to convert a Python dictionary mapping strings to
193
160
strings into an apr_hash_t mapping const char *'s to const char *'s,
194
161
allocated in POOL. */
195
SVN_SWIG_SWIGUTIL_EXPORT
196
162
apr_hash_t *svn_swig_py_stringhash_from_dict(PyObject *dict,
197
163
apr_pool_t *pool);
199
165
/* helper function to convert a Python dictionary mapping strings to
200
166
rangelists into an apr_hash_t mapping const char *'s to rangelists,
201
167
allocated in POOL. */
202
SVN_SWIG_SWIGUTIL_EXPORT
203
168
apr_hash_t *svn_swig_py_mergeinfo_from_dict(PyObject *dict,
204
169
apr_pool_t *pool);
206
171
/* helper function to convert a Python dictionary mapping strings to
207
172
strings into an 'apr_array_header_t *' of svn_prop_t *
208
173
allocated in POOL. */
209
SVN_SWIG_SWIGUTIL_EXPORT
210
174
apr_array_header_t *svn_swig_py_proparray_from_dict(PyObject *dict,
211
175
apr_pool_t *pool);
213
177
/* helper function to convert a 'apr_array_header_t *' of 'svn_prop_t
214
178
to a Python dictionary mapping strings to strings. */
215
SVN_SWIG_SWIGUTIL_EXPORT
216
179
PyObject *svn_swig_py_proparray_to_dict(const apr_array_header_t *array);
218
181
/* helper function to convert a 'apr_array_header_t *' of
219
182
'svn_prop_inherited_item_t' to a Python dictionary mapping strings
220
183
to dictionary. */
221
SVN_SWIG_SWIGUTIL_EXPORT
223
185
svn_swig_py_propinheriteditemarray_to_dict(const apr_array_header_t *array);
225
187
/* helper function to convert a Python dictionary mapping strings to
226
188
strings into an apr_hash_t mapping const char *'s to svn_string_t's,
227
189
allocated in POOL. */
228
SVN_SWIG_SWIGUTIL_EXPORT
229
190
apr_hash_t *svn_swig_py_prophash_from_dict(PyObject *dict,
230
191
apr_pool_t *pool);
232
193
/* helper function to convert a Python dictionary mapping strings to
233
194
integers into an apr_hash_t mapping const char *'s to revnums,
234
195
allocated in POOL. */
235
SVN_SWIG_SWIGUTIL_EXPORT
236
196
apr_hash_t *svn_swig_py_path_revs_hash_from_dict(PyObject *dict,
237
197
apr_pool_t *pool);
239
199
/* helper function to convert a Python dictionary mapping strings to
240
200
SWIG wrappers described by type into an apr_hash_t mapping const char *'s to
241
201
struct pointers, allocated in POOL. */
242
SVN_SWIG_SWIGUTIL_EXPORT
243
202
apr_hash_t *svn_swig_py_struct_ptr_hash_from_dict(PyObject *dict,
244
203
swig_type_info *type,
245
204
apr_pool_t *pool);
286
242
/* An svn_swig_py_object_unwrap_t that extracts a struct pointer from a SWIG
287
243
wrapper. baton is expected to be a swig_type_info* describing the struct. */
288
SVN_SWIG_SWIGUTIL_EXPORT
290
245
svn_swig_py_unwrap_struct_ptr(PyObject *source,
291
246
void *destination,
294
249
/* make an editor that "thunks" from C callbacks up to Python */
295
SVN_SWIG_SWIGUTIL_EXPORT
296
250
void svn_swig_py_make_editor(const svn_delta_editor_t **editor,
297
251
void **edit_baton,
298
252
PyObject *py_editor,
299
253
apr_pool_t *pool);
301
SVN_SWIG_SWIGUTIL_EXPORT
255
/* make a parse vtable that "thunks" from C callbacks up to Python */
256
void svn_swig_py_make_parse_fns3(const svn_repos_parse_fns3_t **parse_fns3,
258
PyObject *py_parse_fns3,
302
261
apr_file_t *svn_swig_py_make_file(PyObject *py_file,
303
262
apr_pool_t *pool);
305
SVN_SWIG_SWIGUTIL_EXPORT
306
264
svn_stream_t *svn_swig_py_make_stream(PyObject *py_io,
307
265
apr_pool_t *pool);
309
267
/* Convert ops, a C array of num_ops elements, to a Python list of SWIG
310
268
objects with descriptor op_type_info and pool set to parent_pool. */
311
SVN_SWIG_SWIGUTIL_EXPORT
313
270
svn_swig_py_convert_txdelta_op_c_array(int num_ops,
314
271
svn_txdelta_op_t *ops,
327
283
svn_wc_notify_state_t prop_state,
328
284
svn_revnum_t revision);
330
SVN_SWIG_SWIGUTIL_EXPORT
331
286
void svn_swig_py_notify_func2(void *baton,
332
287
const svn_wc_notify_t *notify,
333
288
apr_pool_t *pool);
335
290
/* a status function that executes a Python function that is passed in
336
291
via the baton argument */
337
SVN_SWIG_SWIGUTIL_EXPORT
338
292
void svn_swig_py_status_func(void *baton,
339
293
const char *path,
340
294
svn_wc_status_t *status);
342
296
/* a svn_delta_path_driver callback that executes a Python function
343
297
that is passed in via the baton argument */
344
SVN_SWIG_SWIGUTIL_EXPORT
345
298
svn_error_t *svn_swig_py_delta_path_driver_cb_func(void **dir_baton,
346
299
void *parent_baton,
347
300
void *callback_baton,
351
304
/* a status function that executes a Python function that is passed in
352
305
via the baton argument */
353
SVN_SWIG_SWIGUTIL_EXPORT
354
306
void svn_swig_py_status_func2(void *baton,
355
307
const char *path,
356
308
svn_wc_status2_t *status);
358
310
/* a cancel function that executes a Python function passed in via the
359
311
cancel_baton argument. */
360
SVN_SWIG_SWIGUTIL_EXPORT
361
312
svn_error_t *svn_swig_py_cancel_func(void *cancel_baton);
363
314
/* thunked fs get_locks function */
364
SVN_SWIG_SWIGUTIL_EXPORT
365
315
svn_error_t *svn_swig_py_fs_get_locks_func(void *baton,
366
316
svn_lock_t *lock,
367
317
apr_pool_t *pool);
319
svn_error_t *svn_swig_py_fs_lock_callback(
322
const svn_lock_t *lock,
369
326
/* thunked commit log fetcher */
370
SVN_SWIG_SWIGUTIL_EXPORT
371
327
svn_error_t *svn_swig_py_get_commit_log_func(const char **log_msg,
372
328
const char **tmp_file,
373
329
const apr_array_header_t *
401
354
apr_pool_t *pool);
403
356
/* thunked log receiver2 function */
404
SVN_SWIG_SWIGUTIL_EXPORT
405
357
svn_error_t *svn_swig_py_log_entry_receiver(void *baton,
406
358
svn_log_entry_t *log_entry,
407
359
apr_pool_t *pool);
409
361
/* thunked repos freeze function */
410
SVN_SWIG_SWIGUTIL_EXPORT
411
362
svn_error_t *svn_swig_py_repos_freeze_func(void *baton,
412
363
apr_pool_t *pool);
414
365
/* thunked fs freeze function */
415
SVN_SWIG_SWIGUTIL_EXPORT
416
366
svn_error_t *svn_swig_py_fs_freeze_func(void *baton,
417
367
apr_pool_t *pool);
419
369
/* thunked proplist receiver2 function */
420
SVN_SWIG_SWIGUTIL_EXPORT
421
370
svn_error_t *svn_swig_py_proplist_receiver2(void *baton,
422
371
const char *path,
423
372
apr_hash_t *prop_hash,
425
374
apr_pool_t *pool);
427
376
/* thunked info receiver function */
428
SVN_SWIG_SWIGUTIL_EXPORT
429
377
svn_error_t *svn_swig_py_info_receiver_func(void *py_receiver,
430
378
const char *path,
431
379
const svn_info_t *info,
432
380
apr_pool_t *pool);
434
382
/* thunked location segments receiver function */
435
SVN_SWIG_SWIGUTIL_EXPORT
437
384
svn_swig_py_location_segment_receiver_func(svn_location_segment_t *segment,
439
386
apr_pool_t *pool);
441
388
/* thunked blame receiver function */
442
SVN_SWIG_SWIGUTIL_EXPORT
443
389
svn_error_t *svn_swig_py_client_blame_receiver_func(void *baton,
444
390
apr_int64_t line_no,
445
391
svn_revnum_t revision,
449
395
apr_pool_t *pool);
451
397
/* thunked changelist receiver function */
452
SVN_SWIG_SWIGUTIL_EXPORT
453
398
svn_error_t *svn_swig_py_changelist_receiver_func(void *baton,
454
399
const char *path,
455
400
const char *changelist,
456
401
apr_pool_t *pool);
458
403
/* auth provider callbacks */
459
SVN_SWIG_SWIGUTIL_EXPORT
460
404
svn_error_t * svn_swig_py_auth_gnome_keyring_unlock_prompt_func(
461
405
char **keyring_passwd,
462
406
const char *keyring_name,
464
408
apr_pool_t *pool);
466
SVN_SWIG_SWIGUTIL_EXPORT
467
410
svn_error_t *svn_swig_py_auth_simple_prompt_func(
468
411
svn_auth_cred_simple_t **cred,
515
453
apr_hash_t *hash,
516
454
apr_pool_t *scratch_pool);
518
SVN_SWIG_SWIGUTIL_EXPORT
520
457
svn_swig_py_setup_ra_callbacks(svn_ra_callbacks2_t **callbacks,
522
459
PyObject *py_callbacks,
523
460
apr_pool_t *pool);
525
SVN_SWIG_SWIGUTIL_EXPORT
526
462
svn_wc_diff_callbacks2_t *
527
463
svn_swig_py_setup_wc_diff_callbacks2(void **baton,
528
464
PyObject *py_callbacks,
529
465
apr_pool_t *pool);
531
SVN_SWIG_SWIGUTIL_EXPORT
532
467
svn_error_t *svn_swig_py_commit_callback2(const svn_commit_info_t *commit_info,
534
469
apr_pool_t *pool);
536
SVN_SWIG_SWIGUTIL_EXPORT
537
471
svn_error_t *svn_swig_py_commit_callback(svn_revnum_t new_revision,
538
472
const char *date,
539
473
const char *author,
543
SVN_SWIG_SWIGUTIL_EXPORT
544
477
svn_error_t *svn_swig_py_ra_file_rev_handler_func(
546
479
const char *path,