2 * ====================================================================
3 * Copyright
(c
) 2000-2006 CollabNet. All rights reserved.
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.
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 * ====================================================================
16 * svn_repos.i
: SWIG interface file for svn_repos.h
19 #if defined
(SWIGPYTHON
)
20 %module
(package
="libsvn") repos
21 #elif defined
(SWIGPERL
)
23 #elif defined
(SWIGRUBY
)
24 %module
"svn::ext::repos"
27 %include svn_global.swg
32 /* -----------------------------------------------------------------------
33 %apply-ing of typemaps defined elsewhere
35 %apply const char
*MAY_BE_NULL
{
36 const char
*src_entry
,
42 const char
*lock_token
,
44 const char
*parent_dir
48 %apply svn_stream_t
*WRAPPED_STREAM
{ svn_stream_t
* };
52 %apply const char
*NOT_NULL
{
56 %apply svn_stream_t
*MAY_BE_NULL
{
57 svn_stream_t
*dumpstream_may_be_null
,
58 svn_stream_t
*feedback_stream
62 %callback_typemap
(svn_repos_history_func_t history_func
, void
*history_baton
,
63 svn_swig_py_repos_history_func
,
64 svn_swig_pl_thunk_history_func
,
65 svn_swig_rb_repos_history_func
)
67 %callback_typemap_maybenull
(svn_repos_authz_func_t authz_read_func
,
68 void
*authz_read_baton
,
69 svn_swig_py_repos_authz_func
,
70 svn_swig_pl_thunk_authz_func
,
71 svn_swig_rb_repos_authz_func
)
74 %typemap
(in
) (svn_error_t
*(*start_callback
)(void
*), void
*start_callback_baton
)
76 $
1 = svn_swig_rb_just_call
;
77 $
2 = (void
*)svn_swig_rb_make_baton
($input
, _global_svn_swig_rb_pool
);
82 %callback_typemap
(svn_repos_file_rev_handler_t handler
, void
*handler_baton
,
85 svn_swig_rb_repos_file_rev_handler
)
87 %callback_typemap
(svn_repos_authz_func_t authz_read_func
,
88 void
*authz_read_baton
,
91 svn_swig_rb_repos_authz_func
)
93 %callback_typemap
(svn_repos_authz_callback_t authz_callback
, void
*authz_baton
,
96 svn_swig_rb_repos_authz_callback
)
99 /* -----------------------------------------------------------------------
100 handle svn_repos_get_committed_info
().
103 %typemap
(argout
) const char
**committed_date
{
104 %append_output
(svn_swig_rb_svn_date_string_to_time
(*$
1));
109 /* ----------------------------------------------------------------------- */
110 /* Ruby fixups for functions not following the pool convention.
*/
112 %ignore svn_repos_fs
;
115 svn_repos_fs_wrapper
(svn_repos_t
*fs
, apr_pool_t
*pool
)
117 return svn_repos_fs
(fs
);
122 /* ----------------------------------------------------------------------- */
125 svn_error_t
*svn_repos_dump_fs2
(svn_repos_t
*repos
,
126 svn_stream_t
*dumpstream_may_be_null
,
127 svn_stream_t
*feedback_stream
,
128 svn_revnum_t start_rev
,
129 svn_revnum_t end_rev
,
130 svn_boolean_t incremental
,
131 svn_boolean_t use_deltas
,
132 svn_cancel_func_t cancel_func
,
135 %ignore svn_repos_dump_fs2
;
138 %include svn_repos_h.swg
141 %define_close_related_methods
(repos
)