~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/LibSvnClient0.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// LibSvnClient0.cs
 
3
//
 
4
// Author:
 
5
//       Jeffrey Stedfast <jeff@xamarin.com>
 
6
//       Alan McGovern <alan@xamarin.com>
 
7
//
 
8
// Copyright (c) 2012 Xamarin Inc.
 
9
//
 
10
// Permission is hereby granted, free of charge, to any person obtaining a copy
 
11
// of this software and associated documentation files (the "Software"), to deal
 
12
// in the Software without restriction, including without limitation the rights
 
13
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
14
// copies of the Software, and to permit persons to whom the Software is
 
15
// furnished to do so, subject to the following conditions:
 
16
//
 
17
// The above copyright notice and this permission notice shall be included in
 
18
// all copies or substantial portions of the Software.
 
19
//
 
20
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
21
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
22
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
23
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
24
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
25
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
26
// THE SOFTWARE.
 
27
 
 
28
using System;
 
29
using System.IO;
 
30
using System.Threading;
 
31
using System.Collections;
 
32
using System.Runtime.InteropServices;
 
33
 
 
34
using MonoDevelop.Core;
 
35
using MonoDevelop.VersionControl;
 
36
using MonoDevelop.VersionControl.Subversion.Gui;
 
37
 
 
38
using svn_revnum_t = System.Int32;
 
39
 
 
40
namespace MonoDevelop.VersionControl.Subversion.Unix {
 
41
        
 
42
        public class LibSvnClient0 : LibSvnClient {
 
43
                private const string svnclientlib = "libsvn_client-1.so.0";
 
44
 
 
45
                public override IntPtr client_root_url_from_path (ref IntPtr url, string path_or_url, IntPtr ctx, IntPtr pool)
 
46
                {
 
47
                        return svn_client_root_url_from_path (ref url, path_or_url, ctx, pool);
 
48
                }
 
49
                
 
50
                public override void config_ensure (string config_dir, IntPtr pool)
 
51
                {
 
52
                        svn_config_ensure (config_dir, pool);
 
53
                }
 
54
                
 
55
                public override void config_get_config (ref IntPtr cfg_hash, string config_dir, IntPtr pool)
 
56
                {
 
57
                        svn_config_get_config (ref cfg_hash, config_dir, pool);
 
58
                }
 
59
                
 
60
                public override void auth_open (out IntPtr auth_baton, IntPtr providers, IntPtr pool)   
 
61
                {
 
62
                        svn_auth_open (out auth_baton, providers, pool);
 
63
                }
 
64
                
 
65
                public override void auth_set_parameter (IntPtr auth_baton, string name, IntPtr value)
 
66
                {
 
67
                        svn_auth_set_parameter (auth_baton, name, value);
 
68
                }
 
69
                
 
70
                public override IntPtr auth_get_parameter (IntPtr auth_baton, string name)
 
71
                {
 
72
                        return svn_auth_get_parameter (auth_baton, name);
 
73
                }
 
74
                
 
75
                public override void client_get_simple_provider (IntPtr item, IntPtr pool)
 
76
                {
 
77
                        svn_client_get_simple_provider (item, pool);
 
78
                }
 
79
                
 
80
                public override void client_get_simple_prompt_provider (IntPtr item, svn_auth_simple_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
 
81
                {
 
82
                        svn_client_get_simple_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
 
83
                }
 
84
                
 
85
                public override void client_get_username_provider (IntPtr item, IntPtr pool)
 
86
                {
 
87
                        svn_client_get_username_provider (item, pool);
 
88
                }
 
89
                
 
90
                public override void client_get_username_prompt_provider (IntPtr item, svn_auth_username_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
 
91
                {
 
92
                        svn_client_get_username_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
 
93
                }
 
94
                
 
95
                public override void client_get_ssl_server_trust_file_provider (IntPtr item, IntPtr pool)
 
96
                {
 
97
                        svn_client_get_ssl_server_trust_file_provider (item, pool);
 
98
                }
 
99
                
 
100
                public override void client_get_ssl_client_cert_file_provider (IntPtr item, IntPtr pool)
 
101
                {
 
102
                        svn_client_get_ssl_client_cert_file_provider (item, pool);
 
103
                }
 
104
                
 
105
                public override void client_get_ssl_client_cert_pw_file_provider (IntPtr item, IntPtr pool)
 
106
                {
 
107
                        svn_client_get_ssl_client_cert_pw_file_provider (item, pool);
 
108
                }
 
109
                
 
110
                public override void client_get_ssl_server_trust_prompt_provider (IntPtr item, svn_auth_ssl_server_trust_prompt_func_t prompt_func, IntPtr prompt_batton, IntPtr pool)
 
111
                {
 
112
                        svn_client_get_ssl_server_trust_prompt_provider (item, prompt_func, prompt_batton, pool);
 
113
                }
 
114
                
 
115
                public override void client_get_ssl_client_cert_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
 
116
                {
 
117
                        svn_client_get_ssl_client_cert_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
 
118
                }
 
119
                
 
120
                public override void client_get_ssl_client_cert_pw_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
 
121
                {
 
122
                        svn_client_get_ssl_client_cert_pw_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
 
123
                }
 
124
                
 
125
                public override IntPtr client_version ()
 
126
                {
 
127
                        return svn_client_version ();
 
128
                }
 
129
                
 
130
                public override IntPtr client_create_context (out IntPtr ctx, IntPtr pool)
 
131
                {
 
132
                        return svn_client_create_context (out ctx, pool);
 
133
                }
 
134
                
 
135
                public override IntPtr client_ls (out IntPtr dirents, string path_or_url,
 
136
                                                  ref Rev revision, int recurse, IntPtr ctx,
 
137
                                                  IntPtr pool)
 
138
                {
 
139
                        return svn_client_ls (out dirents, path_or_url, ref revision, recurse, ctx, pool);
 
140
                }
 
141
                
 
142
                public override IntPtr client_status (IntPtr result_rev, string path, ref Rev revision,
 
143
                                                      svn_wc_status_func2_t status_func, IntPtr status_baton,
 
144
                                                      bool recurse, bool get_all, bool update, bool no_ignore,
 
145
                                                      bool ignore_externals, IntPtr ctx, IntPtr pool)
 
146
                {
 
147
                        return svn_client_status2 (result_rev, path, ref revision, status_func,
 
148
                                                   status_baton, recurse, get_all, update,
 
149
                                                   no_ignore, ignore_externals, ctx, pool);
 
150
                }
 
151
                
 
152
                public override IntPtr client_log (IntPtr apr_array_header_t_targets,
 
153
                                                   ref Rev rev_start, ref Rev rev_end,
 
154
                                                   int discover_changed_paths,
 
155
                                                   int strict_node_history,
 
156
                                                   svn_log_message_receiver_t receiver,
 
157
                                                   IntPtr receiver_baton,
 
158
                                                   IntPtr ctx, IntPtr pool)
 
159
                {
 
160
                        return svn_client_log (apr_array_header_t_targets, ref rev_start, ref rev_end,
 
161
                                               discover_changed_paths, strict_node_history, receiver,
 
162
                                               receiver_baton,ctx, pool);
 
163
                }
 
164
                
 
165
                public override IntPtr time_from_cstring (out long aprtime, string time, IntPtr pool)
 
166
                {
 
167
                        return svn_time_from_cstring (out aprtime, time, pool);
 
168
                }
 
169
                
 
170
                public override IntPtr client_url_from_path (ref IntPtr url, string path_or_url, IntPtr pool)
 
171
                {
 
172
                        return svn_client_url_from_path (ref url, path_or_url, pool);
 
173
                }
 
174
                
 
175
                public override IntPtr client_cat2 (IntPtr stream, string path_or_url,
 
176
                                                    ref Rev peg_revision,
 
177
                                                    ref Rev revision,
 
178
                                                    IntPtr ctx, IntPtr pool)
 
179
                {
 
180
                        return svn_client_cat2 (stream, path_or_url, ref peg_revision, ref revision, ctx, pool);
 
181
                }
 
182
                
 
183
                public override IntPtr stream_create (IntPtr baton, IntPtr pool)
 
184
                {
 
185
                        return svn_stream_create (baton, pool);
 
186
                }
 
187
                
 
188
                //public override IntPtr stream_set_read (IntPtr stream, svn_readwrite_fn_t reader);
 
189
                
 
190
                public override IntPtr stream_set_write (IntPtr stream, svn_readwrite_fn_t writer)
 
191
                {
 
192
                        return svn_stream_set_write (stream, writer);
 
193
                }
 
194
                
 
195
                public override IntPtr client_update (IntPtr result_rev, string path, ref Rev revision,
 
196
                                                      bool recurse, IntPtr ctx, IntPtr pool)
 
197
                {
 
198
                        return svn_client_update (result_rev, path, ref revision, recurse, ctx, pool);
 
199
                }
 
200
                
 
201
                public override IntPtr client_delete (ref IntPtr commit_info_p, IntPtr apr_array_header_t_targets, 
 
202
                                                      int force, IntPtr ctx, IntPtr pool)
 
203
                {
 
204
                        return svn_client_delete (ref commit_info_p, apr_array_header_t_targets, force, ctx, pool);
 
205
                }
 
206
                
 
207
                public override IntPtr client_add3 (string path, int recurse, int force, int no_ignore, IntPtr ctx, IntPtr pool)
 
208
                {
 
209
                        return svn_client_add3 (path, recurse, force, no_ignore, ctx, pool);
 
210
                }
 
211
                
 
212
                public override IntPtr client_commit (ref IntPtr svn_client_commit_info_t_commit_info,
 
213
                                                      IntPtr apr_array_header_t_targets, int nonrecursive,
 
214
                                                      IntPtr ctx, IntPtr pool)
 
215
                {
 
216
                        return svn_client_commit (ref svn_client_commit_info_t_commit_info, apr_array_header_t_targets,
 
217
                                                  nonrecursive, ctx, pool);
 
218
                }
 
219
                
 
220
                public override IntPtr client_revert (IntPtr apr_array_header_t_targets, int recursive,
 
221
                                                      IntPtr ctx, IntPtr pool)
 
222
                {
 
223
                        return svn_client_revert (apr_array_header_t_targets, recursive, ctx, pool);
 
224
                }
 
225
                
 
226
                public override IntPtr client_resolved (string path, int recursive, IntPtr ctx, IntPtr pool)
 
227
                {
 
228
                        return svn_client_resolved (path, recursive, ctx, pool);
 
229
                }
 
230
                
 
231
                public override IntPtr client_move (ref IntPtr commit_info_p, string srcPath, ref Rev rev,
 
232
                                                    string destPath, int force, IntPtr ctx, IntPtr pool)
 
233
                {
 
234
                        return svn_client_move (ref commit_info_p, srcPath, ref rev, destPath, force, ctx, pool);
 
235
                }
 
236
                
 
237
                public override IntPtr client_checkout (IntPtr result_rev, string url, string path, ref Rev rev, 
 
238
                                                        bool recurse, IntPtr ctx, IntPtr pool)
 
239
                {
 
240
                        return svn_client_checkout (result_rev, url, path, ref rev, recurse, ctx, pool);
 
241
                }
 
242
                
 
243
                public override IntPtr client_mkdir2 (ref IntPtr commit_info, IntPtr apr_array_paths, IntPtr ctx, IntPtr pool)
 
244
                {
 
245
                        return svn_client_mkdir2 (ref commit_info, apr_array_paths, ctx, pool);
 
246
                }
 
247
                
 
248
                public override IntPtr client_diff (IntPtr diff_options, string path1, ref Rev revision1,
 
249
                                                    string path2, ref Rev revision2, int recurse,
 
250
                                                    int ignore_ancestry, int no_diff_deleted,
 
251
                                                    IntPtr outfile, IntPtr errfile,
 
252
                                                    IntPtr ctx, IntPtr pool)
 
253
                {
 
254
                        return svn_client_diff (diff_options, path1, ref revision1, path2, ref revision2, recurse, ignore_ancestry,
 
255
                                                no_diff_deleted, outfile, errfile, ctx, pool);
 
256
                }
 
257
                
 
258
                public override IntPtr client_merge_peg2 (
 
259
                                          string source,
 
260
                                          ref Rev revision1,
 
261
                                          ref Rev revision2,
 
262
                                          ref Rev peg_revision,
 
263
                                          string target_wcpath,
 
264
                                          bool recurse,
 
265
                                          bool ignore_ancestry,
 
266
                                          bool force,
 
267
                                          bool dry_run,
 
268
                                          IntPtr merge_options,
 
269
                                          IntPtr ctx,
 
270
                                          IntPtr pool)
 
271
                {
 
272
                        // svn_boolean_t == int
 
273
                        return svn_client_merge_peg2 (source, ref revision1, ref revision2, ref peg_revision, target_wcpath, 
 
274
                                                      recurse ? 1: 0, ignore_ancestry ? 1 : 0, force ? 1 : 0, dry_run ? 1 : 0,
 
275
                                                      merge_options, ctx, pool);
 
276
                }
 
277
                
 
278
                public override IntPtr client_lock (IntPtr apr_array_header_t_targets, string comment, int steal_lock, IntPtr ctx, IntPtr pool)
 
279
                {
 
280
                        return svn_client_lock (apr_array_header_t_targets, comment, steal_lock, ctx, pool);
 
281
                }
 
282
                
 
283
                public override IntPtr client_unlock (IntPtr apr_array_header_t_targets, int break_lock, IntPtr ctx, IntPtr pool)
 
284
                {
 
285
                        return svn_client_unlock (apr_array_header_t_targets, break_lock, ctx, pool);
 
286
                }
 
287
                
 
288
                public override IntPtr client_prop_get (out IntPtr value, string name, string target, ref Rev revision, int recurse, IntPtr ctx, IntPtr pool)
 
289
                {
 
290
                        return svn_client_prop_get (out value, name, target, ref revision, recurse, ctx, pool);
 
291
                }
 
292
                
 
293
                public override IntPtr client_blame (string path, ref Rev rev_start, ref Rev rev_end, svn_client_blame_receiver_t receiver, System.IntPtr baton, System.IntPtr ctx, System.IntPtr pool)
 
294
                {
 
295
                        return svn_client_blame (path, ref rev_start, ref rev_end, receiver, baton, ctx, pool);
 
296
                }
 
297
                
 
298
                public override void strerror (int statcode, byte[] buf, int bufsize)
 
299
                {
 
300
                        svn_strerror (statcode, buf, bufsize);
 
301
                }
 
302
                
 
303
                public override IntPtr path_internal_style (string path, IntPtr pool)
 
304
                {
 
305
                        return svn_path_internal_style (path, pool);
 
306
                }
 
307
                
 
308
                [DllImport(svnclientlib)] static extern IntPtr svn_client_root_url_from_path (ref IntPtr url, string path_or_url, IntPtr ctx, IntPtr pool);
 
309
                [DllImport(svnclientlib)] static extern IntPtr svn_config_ensure (string config_dir, IntPtr pool);
 
310
                [DllImport(svnclientlib)] static extern IntPtr svn_config_get_config (ref IntPtr cfg_hash, string config_dir, IntPtr pool);
 
311
                [DllImport(svnclientlib)] static extern void svn_auth_open (out IntPtr auth_baton, IntPtr providers, IntPtr pool);
 
312
                [DllImport(svnclientlib)] static extern void svn_auth_set_parameter (IntPtr auth_baton, string name, IntPtr value);
 
313
                [DllImport(svnclientlib)] static extern IntPtr svn_auth_get_parameter (IntPtr auth_baton, string name);
 
314
                [DllImport(svnclientlib)] static extern void svn_client_get_simple_provider (IntPtr item, IntPtr pool);
 
315
                [DllImport(svnclientlib)] static extern void svn_client_get_simple_prompt_provider (IntPtr item, svn_auth_simple_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool);
 
316
                [DllImport(svnclientlib)] static extern void svn_client_get_username_provider (IntPtr item, IntPtr pool);
 
317
                [DllImport(svnclientlib)] static extern void svn_client_get_username_prompt_provider (IntPtr item, svn_auth_username_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool);
 
318
                [DllImport(svnclientlib)] static extern void svn_client_get_ssl_server_trust_file_provider (IntPtr item, IntPtr pool);
 
319
                [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_file_provider (IntPtr item, IntPtr pool);
 
320
                [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_pw_file_provider (IntPtr item, IntPtr pool);
 
321
                [DllImport(svnclientlib)] static extern void svn_client_get_ssl_server_trust_prompt_provider (IntPtr item, svn_auth_ssl_server_trust_prompt_func_t prompt_func, IntPtr prompt_batton, IntPtr pool);
 
322
                [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool);
 
323
                [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_pw_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool);
 
324
                
 
325
                [DllImport(svnclientlib)] static extern IntPtr svn_client_version();
 
326
                
 
327
                [DllImport(svnclientlib)] static extern IntPtr svn_client_create_context(out IntPtr ctx, IntPtr pool);
 
328
                
 
329
                [DllImport(svnclientlib)] static extern IntPtr svn_client_ls (out IntPtr dirents, string path_or_url,
 
330
                                                                              ref Rev revision, int recurse, IntPtr ctx,
 
331
                                                                              IntPtr pool);
 
332
                
 
333
                [DllImport(svnclientlib)] static extern IntPtr svn_client_status2 (IntPtr svn_revnum_t, string path, ref Rev revision,
 
334
                                                                                   svn_wc_status_func2_t status_func, IntPtr status_baton,
 
335
                                                                                   [MarshalAs (UnmanagedType.Bool)] bool recurse,
 
336
                                                                                   [MarshalAs (UnmanagedType.Bool)] bool get_all,
 
337
                                                                                   [MarshalAs (UnmanagedType.Bool)] bool update,
 
338
                                                                                   [MarshalAs (UnmanagedType.Bool)] bool no_ignore,
 
339
                                                                                   [MarshalAs (UnmanagedType.Bool)] bool ignore_externals,
 
340
                                                                                   IntPtr ctx, IntPtr pool);
 
341
                
 
342
                [DllImport(svnclientlib)] static extern IntPtr svn_client_log (IntPtr apr_array_header_t_targets,
 
343
                                                                               ref Rev rev_start, ref Rev rev_end,
 
344
                                                                               int discover_changed_paths,
 
345
                                                                               int strict_node_history,
 
346
                                                                               svn_log_message_receiver_t receiver,
 
347
                                                                               IntPtr receiver_baton,
 
348
                                                                               IntPtr ctx, IntPtr pool);
 
349
                
 
350
                [DllImport(svnclientlib)] static extern IntPtr svn_time_from_cstring (out long aprtime, string time, IntPtr pool);
 
351
                
 
352
                [DllImport(svnclientlib)] static extern IntPtr svn_client_url_from_path (ref IntPtr url, string path_or_url, IntPtr pool);
 
353
                
 
354
                [DllImport(svnclientlib)] static extern IntPtr svn_client_cat2 (IntPtr stream, string path_or_url,
 
355
                                                                                ref Rev peg_revision,
 
356
                                                                                ref Rev revision,
 
357
                                                                                IntPtr ctx, IntPtr pool);
 
358
                
 
359
                [DllImport(svnclientlib)] static extern IntPtr svn_stream_create (IntPtr baton, IntPtr pool);
 
360
                
 
361
                //[DllImport(svnclientlib)] static extern IntPtr svn_stream_set_read (IntPtr stream, svn_readwrite_fn_t reader);
 
362
                
 
363
                [DllImport(svnclientlib)] static extern IntPtr svn_stream_set_write (IntPtr stream, svn_readwrite_fn_t writer);
 
364
                
 
365
                [DllImport(svnclientlib)] static extern IntPtr svn_client_update (IntPtr result_rev, string path, ref Rev revision,
 
366
                                                                                  [MarshalAs (UnmanagedType.Bool)] bool recurse,
 
367
                                                                                  IntPtr ctx, IntPtr pool);
 
368
                
 
369
                [DllImport(svnclientlib)] static extern IntPtr svn_client_delete (ref IntPtr commit_info_p, IntPtr apr_array_header_t_targets, 
 
370
                                                                                  int force, IntPtr ctx, IntPtr pool);
 
371
                
 
372
                [DllImport(svnclientlib)] static extern IntPtr svn_client_add3 (string path, int recurse, int force, int no_ignore, IntPtr ctx, IntPtr pool);
 
373
                
 
374
                [DllImport(svnclientlib)] static extern IntPtr svn_client_commit (ref IntPtr svn_client_commit_info_t_commit_info,
 
375
                                                                                  IntPtr apr_array_header_t_targets, int nonrecursive,
 
376
                                                                                  IntPtr ctx, IntPtr pool);
 
377
                
 
378
                [DllImport(svnclientlib)] static extern IntPtr svn_client_revert (IntPtr apr_array_header_t_targets, int recursive,
 
379
                                                                                  IntPtr ctx, IntPtr pool);
 
380
                
 
381
                [DllImport(svnclientlib)] static extern IntPtr svn_client_resolved (string path, int recursive, IntPtr ctx, IntPtr pool);
 
382
                
 
383
                [DllImport(svnclientlib)] static extern IntPtr svn_client_move (ref IntPtr commit_info_p, string srcPath, ref Rev rev,
 
384
                                                                                string destPath, int force, IntPtr ctx, IntPtr pool);
 
385
                
 
386
                [DllImport(svnclientlib)] static extern IntPtr svn_client_checkout (IntPtr result_rev, string url, string path, ref Rev rev, 
 
387
                                                                                    [MarshalAs (UnmanagedType.Bool)] bool recurse,
 
388
                                                                                    IntPtr ctx, IntPtr pool);
 
389
                
 
390
                [DllImport(svnclientlib)] static extern IntPtr svn_client_mkdir2 (ref IntPtr commit_info, IntPtr apr_array_paths, IntPtr ctx, IntPtr pool);
 
391
                
 
392
                [DllImport(svnclientlib)] static extern IntPtr svn_client_diff (IntPtr diff_options, string path1,
 
393
                                                                                ref Rev revision1, string path2,
 
394
                                                                                ref Rev revision2, int recurse,
 
395
                                                                                int ignore_ancestry,
 
396
                                                                                int no_diff_deleted,
 
397
                                                                                IntPtr outfile,
 
398
                                                                                IntPtr errfile,
 
399
                                                                                IntPtr ctx,
 
400
                                                                                IntPtr pool);
 
401
                
 
402
                [DllImport(svnclientlib)] static extern IntPtr svn_client_merge_peg2 (string source,
 
403
                                                                                      ref Rev revision1,
 
404
                                                                                      ref Rev revision2,
 
405
                                                                                      ref Rev peg_revision,
 
406
                                                                                      string target_wcpath,
 
407
                                                                                      int recurse,
 
408
                                                                                      int ignore_ancestry,
 
409
                                                                                      int force,
 
410
                                                                                      int dry_run,
 
411
                                                                                      IntPtr merge_options,
 
412
                                                                                      IntPtr ctx,
 
413
                                                                                      IntPtr pool);
 
414
                
 
415
                [DllImport(svnclientlib)] static extern IntPtr svn_client_lock (IntPtr apr_array_header_t_targets, string comment, int steal_lock, IntPtr ctx, IntPtr pool);
 
416
                
 
417
                [DllImport(svnclientlib)] static extern IntPtr svn_client_unlock (IntPtr apr_array_header_t_targets, int break_lock, IntPtr ctx, IntPtr pool);
 
418
                
 
419
                [DllImport(svnclientlib)] static extern IntPtr svn_client_prop_get (out IntPtr value, string name, string target, ref Rev revision, int recurse, IntPtr ctx, IntPtr pool);
 
420
 
 
421
                [DllImport(svnclientlib)] static extern IntPtr svn_client_blame (string path, ref Rev rev_start, ref Rev rev_end, svn_client_blame_receiver_t receiver, IntPtr baton, IntPtr ctx, IntPtr pool);
 
422
                
 
423
                [DllImport(svnclientlib)] static extern void svn_strerror (int statcode, byte[] buf, int bufsize);
 
424
                
 
425
                [DllImport(svnclientlib)] static extern IntPtr svn_path_internal_style (string path, IntPtr pool);
 
426
        }
 
427
}
 
 
b'\\ No newline at end of file'