diff options
Diffstat (limited to 'subversion/bindings/swig/svn_delta.i')
-rw-r--r-- | subversion/bindings/swig/svn_delta.i | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/subversion/bindings/swig/svn_delta.i b/subversion/bindings/swig/svn_delta.i index ddcd714..f69b76e 100644 --- a/subversion/bindings/swig/svn_delta.i +++ b/subversion/bindings/swig/svn_delta.i @@ -63,6 +63,9 @@ */ #ifdef SWIGPYTHON +/* Make swig wrap this function for us, to allow making an editor in python + ### There must be a cleaner way to implement this? + ### Maybe follow Ruby by wrapping it where passing an editor? */ void svn_swig_py_make_editor(const svn_delta_editor_t **editor, void **edit_baton, PyObject *py_editor, @@ -71,14 +74,8 @@ void svn_swig_py_make_editor(const svn_delta_editor_t **editor, #ifdef SWIGPERL %typemap(in) (const svn_delta_editor_t *EDITOR, void *BATON) { - svn_delta_make_editor(&$1, &$2, $input, _global_pool); + svn_swig_pl_make_editor(&$1, &$2, $input, _global_pool); } - -void svn_delta_wrap_window_handler(svn_txdelta_window_handler_t *handler, - void **handler_baton, - SV *callback, - apr_pool_t *pool); - #endif #ifdef SWIGRUBY @@ -176,7 +173,7 @@ svn_txdelta_window_t_ops_get(svn_txdelta_window_t *window) %ignore svn_txdelta_window_t::ops; %extend svn_txdelta_window_t { -void _ops_get(int *num_ops, svn_txdelta_op_t **ops) +void _ops_get(int *num_ops, const svn_txdelta_op_t **ops) { *num_ops = self->num_ops; *ops = self->ops; @@ -208,11 +205,11 @@ void _ops_get(int *num_ops, svn_txdelta_op_t **ops) %include svn_delta_h.swg #ifdef SWIGPYTHON -%pythoncode { +%pythoncode %{ # This function is for backwards compatibility only. # Use svn_txdelta_window_t.ops instead. svn_txdelta_window_t_ops_get = svn_txdelta_window_t._ops_get -} +%} #endif #ifdef SWIGRUBY |