source: valtobtest/subversion-1.6.2/subversion/bindings/swig/svn_ra.i @ 3

Last change on this file since 3 was 3, checked in by valtob, 15 years ago

subversion source 1.6.2 as test

File size: 3.3 KB
Line 
1/*
2 * ====================================================================
3 * Copyright (c) 2000-2007 CollabNet.  All rights reserved.
4 *
5 * This software is licensed as described in the file COPYING, which
6 * you should have received as part of this distribution.  The terms
7 * are also available at http://subversion.tigris.org/license-1.html.
8 * If newer versions of this license are posted there, you may use a
9 * newer version instead, at your option.
10 *
11 * This software consists of voluntary contributions made by many
12 * individuals.  For exact contribution history, see the revision
13 * history and logs, available at http://subversion.tigris.org/.
14 * ====================================================================
15 *
16 * svn_ra.i: SWIG interface file for svn_ra.h
17 */
18
19#if defined(SWIGPYTHON)
20%module(package="libsvn") ra
21#elif defined(SWIGPERL)
22%module "SVN::_Ra"
23#elif defined(SWIGRUBY)
24%module "svn::ext::ra"
25#endif
26
27%include svn_global.swg
28%import core.i
29%import svn_delta.i
30
31/* Bad pool convention, also these are not public interfaces, they were
32   simply placed in the public header by mistake. */
33%ignore svn_ra_svn_init;
34%ignore svn_ra_local_init;
35%ignore svn_ra_dav_init;
36%ignore svn_ra_serf_init;
37
38%apply Pointer NONNULL { svn_ra_callbacks2_t *callbacks };
39
40/* -----------------------------------------------------------------------
41   %apply-ing of typemaps defined elsewhere
42*/
43%apply const char *MAY_BE_NULL {
44    const char *comment,
45    const char *lock_token
46};
47
48#ifdef SWIGPYTHON
49%apply svn_stream_t *WRAPPED_STREAM { svn_stream_t * };
50#endif
51
52/* ----------------------------------------------------------------------- */
53
54#ifdef SWIGPYTHON
55%typemap(in) (const svn_ra_callbacks2_t *callbacks, void *callback_baton) {
56  svn_swig_py_setup_ra_callbacks(&$1, &$2, $input, _global_pool);
57}
58/* FIXME: svn_ra_callbacks_t ? */
59#endif
60#ifdef SWIGPERL
61/* FIXME: svn_ra_callbacks2_t ? */
62%typemap(in) (const svn_ra_callbacks_t *callbacks, void *callback_baton) {
63  svn_ra_make_callbacks(&$1, &$2, $input, _global_pool);
64}
65#endif
66#ifdef SWIGRUBY
67%typemap(in) (const svn_ra_callbacks2_t *callbacks, void *callback_baton) {
68  svn_swig_rb_setup_ra_callbacks(&$1, &$2, $input, _global_pool);
69}
70/* FIXME: svn_ra_callbacks_t ? */
71#endif
72
73#ifdef SWIGPYTHON
74%callback_typemap(const svn_ra_reporter2_t *reporter, void *report_baton,
75                  (svn_ra_reporter2_t *)&swig_py_ra_reporter2,
76                  ,
77                  )
78%callback_typemap(svn_location_segment_receiver_t receiver, void *receiver_baton,
79                  svn_swig_py_location_segment_receiver_func,
80                  ,
81                  )
82#endif
83
84#ifdef SWIGRUBY
85%callback_typemap(const svn_ra_reporter3_t *reporter, void *report_baton,
86                  ,
87                  ,
88                  svn_swig_rb_ra_reporter3)
89#endif
90
91#ifndef SWIGPERL
92%callback_typemap(svn_ra_file_rev_handler_t handler, void *handler_baton,
93                  svn_swig_py_ra_file_rev_handler_func,
94                  ,
95                  svn_swig_rb_ra_file_rev_handler)
96#endif
97
98%callback_typemap(svn_ra_lock_callback_t lock_func, void *lock_baton,
99                  svn_swig_py_ra_lock_callback,
100                  svn_swig_pl_ra_lock_callback,
101                  svn_swig_rb_ra_lock_callback)
102
103/* ----------------------------------------------------------------------- */
104
105%include svn_ra_h.swg
Note: See TracBrowser for help on using the repository browser.