2
* svn_delta.i : SWIG interface file for svn_delta.h
4
* ====================================================================
5
* Copyright (c) 2000-2003 CollabNet. All rights reserved.
7
* This software is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at http://subversion.tigris.org/license-1.html.
10
* If newer versions of this license are posted there, you may use a
11
* newer version instead, at your option.
13
* This software consists of voluntary contributions made by many
14
* individuals. For exact contribution history, see the revision
15
* history and logs, available at http://subversion.tigris.org/.
16
* ====================================================================
21
#elif defined(SWIGRUBY)
22
%module "svn::ext::delta"
33
/* -----------------------------------------------------------------------
34
For these types, "type **" is always an OUT param.
36
%apply SWIGTYPE **OUTPARAM {
37
svn_txdelta_stream_t **,
39
svn_txdelta_window_t **,
40
const svn_delta_editor_t **,
41
svn_txdelta_window_handler_t *
44
/* -----------------------------------------------------------------------
45
mark window.new_data as readonly since we would need a pool to set it
46
properly (e.g. to allocate an svn_string_t structure).
48
%immutable svn_txdelta_window_t::new_data;
50
/* -----------------------------------------------------------------------
51
thunk editors for the various language bindings.
55
void svn_swig_py_make_editor(const svn_delta_editor_t **editor,
61
%typemap(perl5, in) (const svn_delta_editor_t *editor, void *edit_baton) {
62
svn_delta_make_editor(&$1, &$2, $input, _global_pool);
66
void svn_swig_rb_make_editor(const svn_delta_editor_t **editor,
72
/* ----------------------------------------------------------------------- */
76
#include "svn_delta.h"
79
#include "swigutil_py.h"
83
#include "swigutil_pl.h"
87
#include "swigutil_rb.h"
93
/* -----------------------------------------------------------------------
94
editor callback invokers
97
/* Cancel the typemap as they aren't returned valued in member functions
99
%typemap(perl5, in) (const svn_delta_editor_t *editor, void *edit_baton);
102
%include delta_editor.hi
106
REMOVE_DESTRUCTOR(svn_txdelta_op_t)
107
REMOVE_DESTRUCTOR(svn_txdelta_window_t)
108
REMOVE_DESTRUCTOR(svn_delta_editor_t)