summaryrefslogtreecommitdiff
path: root/subversion/bindings/swig/proxy/svn_client_h.swg
blob: 989acfb40da2503be4625991fc25154e4cde44be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/* Proxy classes for svn_client.h
 * DO NOT EDIT -- AUTOMATICALLY GENERATED
 * BY build/generator/swig/header_wrappers.py */

/* No default constructors for opaque structs */
#ifdef SWIGPYTHON
%nodefault svn_client_conflict_t;
%nodefault svn_client_conflict_option_t;
#endif

/* Callback typemaps */
#ifdef SWIGPYTHON
%apply CALLABLE_CALLBACK {
  svn_proplist_receiver2_t,
  svn_proplist_receiver_t,
  svn_client_get_commit_log3_t,
  svn_client_get_commit_log2_t,
  svn_client_get_commit_log_t,
  svn_client_blame_receiver4_t,
  svn_client_blame_receiver3_t,
  svn_client_blame_receiver2_t,
  svn_client_blame_receiver_t,
  svn_client_diff_summarize_func_t,
  svn_client__layout_func_t,
  svn_client_import_filter_func_t,
  svn_client_status_func_t,
  svn_client_conflict_walk_func_t,
  svn_client_list_func2_t,
  svn_client_list_func_t,
  svn_info_receiver_t,
  svn_client_info_receiver2_t,
  svn_client_patch_func_t
};
%apply CALLABLE_CALLBACK * {
  svn_proplist_receiver2_t *,
  svn_proplist_receiver_t *,
  svn_client_get_commit_log3_t *,
  svn_client_get_commit_log2_t *,
  svn_client_get_commit_log_t *,
  svn_client_blame_receiver4_t *,
  svn_client_blame_receiver3_t *,
  svn_client_blame_receiver2_t *,
  svn_client_blame_receiver_t *,
  svn_client_diff_summarize_func_t *,
  svn_client__layout_func_t *,
  svn_client_import_filter_func_t *,
  svn_client_status_func_t *,
  svn_client_conflict_walk_func_t *,
  svn_client_list_func2_t *,
  svn_client_list_func_t *,
  svn_info_receiver_t *,
  svn_client_info_receiver2_t *,
  svn_client_patch_func_t *
};
#endif

/* Baton typemaps */
#ifdef SWIGPYTHON
%apply void *PY_AS_VOID {
  void *prompt_baton,
  void *baton,
  void *notify_baton,
  void *log_msg_baton,
  void *cancel_baton,
  void *notify_baton2,
  void *log_msg_baton2,
  void *progress_baton,
  void *log_msg_baton3,
  void *conflict_baton,
  void *conflict_baton2,
  void *tunnel_baton,
  void *layout_baton,
  void *commit_baton,
  void *filter_baton,
  void *backwards_compatibility_baton,
  void *status_baton,
  void *receiver_baton,
  void *summarize_baton,
  void *conflict_walk_func_baton,
  void *shelved_baton,
  void *not_shelved_baton,
  void *edit_baton,
  void *walk_baton,
  void *callback_baton,
  void *patch_baton
};
#endif

/* Includes */
%{
#include "svn_client.h"
%}
%include svn_client.h

/* Structure definitions */
#ifdef SWIGPYTHON
%proxy(svn_client_proplist_item_t);
%proxy(svn_client_commit_info_t);
%proxy(svn_client_commit_item3_t);
%proxy(svn_client_commit_item2_t);
%proxy(svn_client_commit_item_t);
%proxy(svn_client_diff_summarize_t);
%proxy(svn_client_ctx_t);
%proxy(svn_client_status_t);
%opaque_proxy(svn_client_conflict_t);
%opaque_proxy(svn_client_conflict_option_t);
%proxy(svn_client_copy_source_t);
%proxy(svn_client__shelf_t);
%proxy(svn_client__shelf_version_t);
%proxy(svn_client__shelf_info_t);
%proxy(svn_info_t);
%proxy(svn_client_info2_t);
#endif

/* Callbacks */

%inline %{
static svn_error_t * svn_proplist_invoke_receiver2(
  svn_proplist_receiver2_t _obj, void *baton, const char *path, apr_hash_t *prop_hash, apr_array_header_t *inherited_props, apr_pool_t *scratch_pool) {
  return _obj(baton, path, prop_hash, inherited_props, scratch_pool);
}

static svn_error_t * svn_proplist_invoke_receiver(
  svn_proplist_receiver_t _obj, void *baton, const char *path, apr_hash_t *prop_hash, apr_pool_t *pool) {
  return _obj(baton, path, prop_hash, pool);
}

static svn_error_t * svn_client_invoke_get_commit_log3(
  svn_client_get_commit_log3_t _obj, const char **log_msg, const char **tmp_file, const apr_array_header_t *commit_items, void *baton, apr_pool_t *pool) {
  return _obj(log_msg, tmp_file, commit_items, baton, pool);
}

static svn_error_t * svn_client_invoke_get_commit_log2(
  svn_client_get_commit_log2_t _obj, const char **log_msg, const char **tmp_file, const apr_array_header_t *commit_items, void *baton, apr_pool_t *pool) {
  return _obj(log_msg, tmp_file, commit_items, baton, pool);
}

static svn_error_t * svn_client_invoke_get_commit_log(
  svn_client_get_commit_log_t _obj, const char **log_msg, const char **tmp_file, apr_array_header_t *commit_items, void *baton, apr_pool_t *pool) {
  return _obj(log_msg, tmp_file, commit_items, baton, pool);
}

static svn_error_t * svn_client_invoke_blame_receiver4(
  svn_client_blame_receiver4_t _obj, void *baton, apr_int64_t line_no, svn_revnum_t revision, apr_hash_t *rev_props, svn_revnum_t merged_revision, apr_hash_t *merged_rev_props, const char *merged_path, const svn_string_t *line, svn_boolean_t local_change, apr_pool_t *pool) {
  return _obj(baton, line_no, revision, rev_props, merged_revision, merged_rev_props, merged_path, line, local_change, pool);
}

static svn_error_t * svn_client_invoke_blame_receiver3(
  svn_client_blame_receiver3_t _obj, void *baton, svn_revnum_t start_revnum, svn_revnum_t end_revnum, apr_int64_t line_no, svn_revnum_t revision, apr_hash_t *rev_props, svn_revnum_t merged_revision, apr_hash_t *merged_rev_props, const char *merged_path, const char *line, svn_boolean_t local_change, apr_pool_t *pool) {
  return _obj(baton, start_revnum, end_revnum, line_no, revision, rev_props, merged_revision, merged_rev_props, merged_path, line, local_change, pool);
}

static svn_error_t * svn_client_invoke_blame_receiver2(
  svn_client_blame_receiver2_t _obj, void *baton, apr_int64_t line_no, svn_revnum_t revision, const char *author, const char *date, svn_revnum_t merged_revision, const char *merged_author, const char *merged_date, const char *merged_path, const char *line, apr_pool_t *pool) {
  return _obj(baton, line_no, revision, author, date, merged_revision, merged_author, merged_date, merged_path, line, pool);
}

static svn_error_t * svn_client_invoke_blame_receiver(
  svn_client_blame_receiver_t _obj, void *baton, apr_int64_t line_no, svn_revnum_t revision, const char *author, const char *date, const char *line, apr_pool_t *pool) {
  return _obj(baton, line_no, revision, author, date, line, pool);
}

static svn_error_t * svn_client_invoke_diff_summarize_func(
  svn_client_diff_summarize_func_t _obj, const svn_client_diff_summarize_t *diff, void *baton, apr_pool_t *pool) {
  return _obj(diff, baton, pool);
}

static svn_error_t * svn_client_invoke__layout_func(
  svn_client__layout_func_t _obj, void *layout_baton, const char *local_abspath, const char *repos_root_url, svn_boolean_t not_present, svn_boolean_t url_changed, const char *url, svn_boolean_t revision_changed, svn_revnum_t revision, svn_boolean_t depth_changed, svn_depth_t depth, apr_pool_t *scratch_pool) {
  return _obj(layout_baton, local_abspath, repos_root_url, not_present, url_changed, url, revision_changed, revision, depth_changed, depth, scratch_pool);
}

static svn_error_t * svn_client_invoke_import_filter_func(
  svn_client_import_filter_func_t _obj, void *baton, svn_boolean_t *filtered, const char *local_abspath, const svn_io_dirent2_t *dirent, apr_pool_t *scratch_pool) {
  return _obj(baton, filtered, local_abspath, dirent, scratch_pool);
}

static svn_error_t * svn_client_invoke_status_func(
  svn_client_status_func_t _obj, void *baton, const char *path, const svn_client_status_t *status, apr_pool_t *scratch_pool) {
  return _obj(baton, path, status, scratch_pool);
}

static svn_error_t * svn_client_invoke_conflict_walk_func(
  svn_client_conflict_walk_func_t _obj, void *baton, svn_client_conflict_t *conflict, apr_pool_t *scratch_pool) {
  return _obj(baton, conflict, scratch_pool);
}

static svn_error_t * svn_client_invoke_list_func2(
  svn_client_list_func2_t _obj, void *baton, const char *path, const svn_dirent_t *dirent, const svn_lock_t *lock, const char *abs_path, const char *external_parent_url, const char *external_target, apr_pool_t *scratch_pool) {
  return _obj(baton, path, dirent, lock, abs_path, external_parent_url, external_target, scratch_pool);
}

static svn_error_t * svn_client_invoke_list_func(
  svn_client_list_func_t _obj, void *baton, const char *path, const svn_dirent_t *dirent, const svn_lock_t *lock, const char *abs_path, apr_pool_t *pool) {
  return _obj(baton, path, dirent, lock, abs_path, pool);
}

static svn_error_t * svn_info_invoke_receiver(
  svn_info_receiver_t _obj, void *baton, const char *path, const svn_info_t *info, apr_pool_t *pool) {
  return _obj(baton, path, info, pool);
}

static svn_error_t * svn_client_invoke_info_receiver2(
  svn_client_info_receiver2_t _obj, void *baton, const char *abspath_or_url, const svn_client_info2_t *info, apr_pool_t *scratch_pool) {
  return _obj(baton, abspath_or_url, info, scratch_pool);
}

static svn_error_t * svn_client_invoke_patch_func(
  svn_client_patch_func_t _obj, void *baton, svn_boolean_t *filtered, const char *canon_path_from_patchfile, const char *patch_abspath, const char *reject_abspath, apr_pool_t *scratch_pool) {
  return _obj(baton, filtered, canon_path_from_patchfile, patch_abspath, reject_abspath, scratch_pool);
}

%}

#ifdef SWIGPYTHON
%funcptr_proxy(svn_proplist_receiver2_t, svn_proplist_invoke_receiver2);
%funcptr_proxy(svn_proplist_receiver_t, svn_proplist_invoke_receiver);
%funcptr_proxy(svn_client_get_commit_log3_t, svn_client_invoke_get_commit_log3);
%funcptr_proxy(svn_client_get_commit_log2_t, svn_client_invoke_get_commit_log2);
%funcptr_proxy(svn_client_get_commit_log_t, svn_client_invoke_get_commit_log);
%funcptr_proxy(svn_client_blame_receiver4_t, svn_client_invoke_blame_receiver4);
%funcptr_proxy(svn_client_blame_receiver3_t, svn_client_invoke_blame_receiver3);
%funcptr_proxy(svn_client_blame_receiver2_t, svn_client_invoke_blame_receiver2);
%funcptr_proxy(svn_client_blame_receiver_t, svn_client_invoke_blame_receiver);
%funcptr_proxy(svn_client_diff_summarize_func_t, svn_client_invoke_diff_summarize_func);
%funcptr_proxy(svn_client__layout_func_t, svn_client_invoke__layout_func);
%funcptr_proxy(svn_client_import_filter_func_t, svn_client_invoke_import_filter_func);
%funcptr_proxy(svn_client_status_func_t, svn_client_invoke_status_func);
%funcptr_proxy(svn_client_conflict_walk_func_t, svn_client_invoke_conflict_walk_func);
%funcptr_proxy(svn_client_list_func2_t, svn_client_invoke_list_func2);
%funcptr_proxy(svn_client_list_func_t, svn_client_invoke_list_func);
%funcptr_proxy(svn_info_receiver_t, svn_info_invoke_receiver);
%funcptr_proxy(svn_client_info_receiver2_t, svn_client_invoke_info_receiver2);
%funcptr_proxy(svn_client_patch_func_t, svn_client_invoke_patch_func);

#endif