1 | /* Proxy classes for svn_repos.h |
---|
2 | * DO NOT EDIT -- AUTOMATICALLY GENERATED */ |
---|
3 | |
---|
4 | /* No default constructors for opaque structs */ |
---|
5 | #ifdef SWIGPYTHON |
---|
6 | %nodefault svn_repos_t; |
---|
7 | %nodefault svn_authz_t; |
---|
8 | #endif |
---|
9 | |
---|
10 | /* Callback typemaps */ |
---|
11 | #ifdef SWIGPYTHON |
---|
12 | %apply CALLABLE_CALLBACK { |
---|
13 | svn_repos_authz_func_t, |
---|
14 | svn_repos_authz_callback_t, |
---|
15 | svn_repos_file_rev_handler_t, |
---|
16 | svn_repos_history_func_t |
---|
17 | }; |
---|
18 | %apply CALLABLE_CALLBACK * { |
---|
19 | svn_repos_authz_func_t *, |
---|
20 | svn_repos_authz_callback_t *, |
---|
21 | svn_repos_file_rev_handler_t *, |
---|
22 | svn_repos_history_func_t * |
---|
23 | }; |
---|
24 | #endif |
---|
25 | |
---|
26 | /* Baton typemaps */ |
---|
27 | #ifdef SWIGPYTHON |
---|
28 | %apply void *PY_AS_VOID { |
---|
29 | void *baton, |
---|
30 | void *start_callback_baton, |
---|
31 | void *notify_baton, |
---|
32 | void *cancel_baton, |
---|
33 | void *edit_baton, |
---|
34 | void *authz_read_baton, |
---|
35 | void *report_baton, |
---|
36 | void *callback_baton, |
---|
37 | void *authz_baton, |
---|
38 | void *history_baton, |
---|
39 | void *receiver_baton, |
---|
40 | void *handler_baton, |
---|
41 | void *parse_baton, |
---|
42 | void *revision_baton, |
---|
43 | void *node_baton |
---|
44 | }; |
---|
45 | #endif |
---|
46 | |
---|
47 | /* Includes */ |
---|
48 | %{ |
---|
49 | #include "svn_repos.h" |
---|
50 | %} |
---|
51 | %include svn_repos.h |
---|
52 | |
---|
53 | /* Structure definitions */ |
---|
54 | #ifdef SWIGPYTHON |
---|
55 | %opaque_proxy(svn_repos_t); |
---|
56 | %proxy(svn_repos_node_t); |
---|
57 | %proxy(svn_repos_parse_fns2_t); |
---|
58 | %proxy(svn_repos_parse_fns_t); |
---|
59 | %opaque_proxy(svn_authz_t); |
---|
60 | #endif |
---|
61 | |
---|
62 | /* Callbacks */ |
---|
63 | |
---|
64 | %inline %{ |
---|
65 | static svn_error_t * svn_repos_parse_fns2_invoke_new_revision_record( |
---|
66 | svn_repos_parse_fns2_t * _obj, void **revision_baton, apr_hash_t *headers, void *parse_baton, apr_pool_t *pool) { |
---|
67 | return (_obj->new_revision_record)(revision_baton, headers, parse_baton, pool); |
---|
68 | } |
---|
69 | |
---|
70 | static svn_error_t * svn_repos_parse_fns2_invoke_uuid_record( |
---|
71 | svn_repos_parse_fns2_t * _obj, const char *uuid, void *parse_baton, apr_pool_t *pool) { |
---|
72 | return (_obj->uuid_record)(uuid, parse_baton, pool); |
---|
73 | } |
---|
74 | |
---|
75 | static svn_error_t * svn_repos_parse_fns2_invoke_new_node_record( |
---|
76 | svn_repos_parse_fns2_t * _obj, void **node_baton, apr_hash_t *headers, void *revision_baton, apr_pool_t *pool) { |
---|
77 | return (_obj->new_node_record)(node_baton, headers, revision_baton, pool); |
---|
78 | } |
---|
79 | |
---|
80 | static svn_error_t * svn_repos_parse_fns2_invoke_set_revision_property( |
---|
81 | svn_repos_parse_fns2_t * _obj, void *revision_baton, const char *name, const svn_string_t *value) { |
---|
82 | return (_obj->set_revision_property)(revision_baton, name, value); |
---|
83 | } |
---|
84 | |
---|
85 | static svn_error_t * svn_repos_parse_fns2_invoke_set_node_property( |
---|
86 | svn_repos_parse_fns2_t * _obj, void *node_baton, const char *name, const svn_string_t *value) { |
---|
87 | return (_obj->set_node_property)(node_baton, name, value); |
---|
88 | } |
---|
89 | |
---|
90 | static svn_error_t * svn_repos_parse_fns2_invoke_delete_node_property( |
---|
91 | svn_repos_parse_fns2_t * _obj, void *node_baton, const char *name) { |
---|
92 | return (_obj->delete_node_property)(node_baton, name); |
---|
93 | } |
---|
94 | |
---|
95 | static svn_error_t * svn_repos_parse_fns2_invoke_remove_node_props( |
---|
96 | svn_repos_parse_fns2_t * _obj, void *node_baton) { |
---|
97 | return (_obj->remove_node_props)(node_baton); |
---|
98 | } |
---|
99 | |
---|
100 | static svn_error_t * svn_repos_parse_fns2_invoke_set_fulltext( |
---|
101 | svn_repos_parse_fns2_t * _obj, svn_stream_t **stream, void *node_baton) { |
---|
102 | return (_obj->set_fulltext)(stream, node_baton); |
---|
103 | } |
---|
104 | |
---|
105 | static svn_error_t * svn_repos_parse_fns2_invoke_apply_textdelta( |
---|
106 | svn_repos_parse_fns2_t * _obj, svn_txdelta_window_handler_t *handler, void **handler_baton, void *node_baton) { |
---|
107 | return (_obj->apply_textdelta)(handler, handler_baton, node_baton); |
---|
108 | } |
---|
109 | |
---|
110 | static svn_error_t * svn_repos_parse_fns2_invoke_close_node( |
---|
111 | svn_repos_parse_fns2_t * _obj, void *node_baton) { |
---|
112 | return (_obj->close_node)(node_baton); |
---|
113 | } |
---|
114 | |
---|
115 | static svn_error_t * svn_repos_parse_fns2_invoke_close_revision( |
---|
116 | svn_repos_parse_fns2_t * _obj, void *revision_baton) { |
---|
117 | return (_obj->close_revision)(revision_baton); |
---|
118 | } |
---|
119 | |
---|
120 | static svn_error_t * svn_repos_invoke_authz_func( |
---|
121 | svn_repos_authz_func_t _obj, svn_boolean_t *allowed, svn_fs_root_t *root, const char *path, void *baton, apr_pool_t *pool) { |
---|
122 | return _obj(allowed, root, path, baton, pool); |
---|
123 | } |
---|
124 | |
---|
125 | static svn_error_t * svn_repos_invoke_authz_callback( |
---|
126 | svn_repos_authz_callback_t _obj, svn_repos_authz_access_t required, svn_boolean_t *allowed, svn_fs_root_t *root, const char *path, void *baton, apr_pool_t *pool) { |
---|
127 | return _obj(required, allowed, root, path, baton, pool); |
---|
128 | } |
---|
129 | |
---|
130 | static svn_error_t * svn_repos_invoke_file_rev_handler( |
---|
131 | svn_repos_file_rev_handler_t _obj, void *baton, const char *path, svn_revnum_t rev, apr_hash_t *rev_props, svn_txdelta_window_handler_t *delta_handler, void **delta_baton, apr_array_header_t *prop_diffs, apr_pool_t *pool) { |
---|
132 | return _obj(baton, path, rev, rev_props, delta_handler, delta_baton, prop_diffs, pool); |
---|
133 | } |
---|
134 | |
---|
135 | static svn_error_t * svn_repos_invoke_history_func( |
---|
136 | svn_repos_history_func_t _obj, void *baton, const char *path, svn_revnum_t revision, apr_pool_t *pool) { |
---|
137 | return _obj(baton, path, revision, pool); |
---|
138 | } |
---|
139 | |
---|
140 | %} |
---|
141 | |
---|
142 | #ifdef SWIGPYTHON |
---|
143 | %funcptr_member_proxy(svn_repos_parse_fns2_t, new_revision_record, svn_repos_parse_fns2_invoke_new_revision_record); |
---|
144 | %funcptr_member_proxy(svn_repos_parse_fns2_t, uuid_record, svn_repos_parse_fns2_invoke_uuid_record); |
---|
145 | %funcptr_member_proxy(svn_repos_parse_fns2_t, new_node_record, svn_repos_parse_fns2_invoke_new_node_record); |
---|
146 | %funcptr_member_proxy(svn_repos_parse_fns2_t, set_revision_property, svn_repos_parse_fns2_invoke_set_revision_property); |
---|
147 | %funcptr_member_proxy(svn_repos_parse_fns2_t, set_node_property, svn_repos_parse_fns2_invoke_set_node_property); |
---|
148 | %funcptr_member_proxy(svn_repos_parse_fns2_t, delete_node_property, svn_repos_parse_fns2_invoke_delete_node_property); |
---|
149 | %funcptr_member_proxy(svn_repos_parse_fns2_t, remove_node_props, svn_repos_parse_fns2_invoke_remove_node_props); |
---|
150 | %funcptr_member_proxy(svn_repos_parse_fns2_t, set_fulltext, svn_repos_parse_fns2_invoke_set_fulltext); |
---|
151 | %funcptr_member_proxy(svn_repos_parse_fns2_t, apply_textdelta, svn_repos_parse_fns2_invoke_apply_textdelta); |
---|
152 | %funcptr_member_proxy(svn_repos_parse_fns2_t, close_node, svn_repos_parse_fns2_invoke_close_node); |
---|
153 | %funcptr_member_proxy(svn_repos_parse_fns2_t, close_revision, svn_repos_parse_fns2_invoke_close_revision); |
---|
154 | %funcptr_proxy(svn_repos_authz_func_t, svn_repos_invoke_authz_func); |
---|
155 | %funcptr_proxy(svn_repos_authz_callback_t, svn_repos_invoke_authz_callback); |
---|
156 | %funcptr_proxy(svn_repos_file_rev_handler_t, svn_repos_invoke_file_rev_handler); |
---|
157 | %funcptr_proxy(svn_repos_history_func_t, svn_repos_invoke_history_func); |
---|
158 | |
---|
159 | #endif |
---|