1/* Proxy classes for svn_types.h
2 * DO NOT EDIT -- AUTOMATICALLY GENERATED
3 * BY build/generator/swig/header_wrappers.py */
4
5/* No default constructors for opaque structs */
6#ifdef SWIGPYTHON
7%nodefault svn_version_t;
8#endif
9
10/* Callback typemaps */
11#ifdef SWIGPYTHON
12%apply CALLABLE_CALLBACK {
13  svn_log_entry_receiver_t,
14  svn_log_message_receiver_t,
15  svn_commit_callback2_t,
16  svn_commit_callback_t,
17  svn_cancel_func_t,
18  svn_location_segment_receiver_t
19};
20%apply CALLABLE_CALLBACK * {
21  svn_log_entry_receiver_t *,
22  svn_log_message_receiver_t *,
23  svn_commit_callback2_t *,
24  svn_commit_callback_t *,
25  svn_cancel_func_t *,
26  svn_location_segment_receiver_t *
27};
28#endif
29
30/* Baton typemaps */
31#ifdef SWIGPYTHON
32%apply void *PY_AS_VOID {
33  void *baton,
34  void *cancel_baton
35};
36#endif
37
38/* Includes */
39%{
40#include "svn_types.h"
41%}
42%include svn_types.h
43
44/* Structure definitions */
45#ifdef SWIGPYTHON
46%proxy(svn_error_t);
47%opaque_proxy(svn_version_t);
48%proxy(svn_dirent_t);
49%proxy(svn_commit_info_t);
50%proxy(svn_log_changed_path2_t);
51%proxy(svn_log_changed_path_t);
52%proxy(svn_log_entry_t);
53%proxy(svn_lock_t);
54%proxy(svn_merge_range_t);
55%proxy(svn_location_segment_t);
56#endif
57
58/* Callbacks */
59
60%inline %{
61static svn_error_t * svn_log_invoke_entry_receiver(
62  svn_log_entry_receiver_t _obj, void *baton, svn_log_entry_t *log_entry, apr_pool_t *pool) {
63  return _obj(baton, log_entry, pool);
64}
65
66static svn_error_t * svn_log_invoke_message_receiver(
67  svn_log_message_receiver_t _obj, void *baton, apr_hash_t *changed_paths, svn_revnum_t revision, const char *author, const char *date, const char *message, apr_pool_t *pool) {
68  return _obj(baton, changed_paths, revision, author, date, message, pool);
69}
70
71static svn_error_t * svn_commit_invoke_callback2(
72  svn_commit_callback2_t _obj, const svn_commit_info_t *commit_info, void *baton, apr_pool_t *pool) {
73  return _obj(commit_info, baton, pool);
74}
75
76static svn_error_t * svn_commit_invoke_callback(
77  svn_commit_callback_t _obj, svn_revnum_t new_revision, const char *date, const char *author, void *baton) {
78  return _obj(new_revision, date, author, baton);
79}
80
81static svn_error_t * svn_cancel_invoke_func(
82  svn_cancel_func_t _obj, void *cancel_baton) {
83  return _obj(cancel_baton);
84}
85
86static svn_error_t * svn_location_invoke_segment_receiver(
87  svn_location_segment_receiver_t _obj, svn_location_segment_t *segment, void *baton, apr_pool_t *pool) {
88  return _obj(segment, baton, pool);
89}
90
91%}
92
93#ifdef SWIGPYTHON
94%funcptr_proxy(svn_log_entry_receiver_t, svn_log_invoke_entry_receiver);
95%funcptr_proxy(svn_log_message_receiver_t, svn_log_invoke_message_receiver);
96%funcptr_proxy(svn_commit_callback2_t, svn_commit_invoke_callback2);
97%funcptr_proxy(svn_commit_callback_t, svn_commit_invoke_callback);
98%funcptr_proxy(svn_cancel_func_t, svn_cancel_invoke_func);
99%funcptr_proxy(svn_location_segment_receiver_t, svn_location_invoke_segment_receiver);
100
101#endif
102