You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2013/07/24 14:46:01 UTC
svn commit: r1506531 - /subversion/trunk/subversion/bindings/swig/svn_delta.i
Author: rhuijben
Date: Wed Jul 24 12:46:01 2013
New Revision: 1506531
URL: http://svn.apache.org/r1506531
Log:
* subversion/bindings/swig/svn_delta.i
(svn_swig_py_make_editor): Following up on r1506520, reintroduce
function prototype, but now with documentation why it is needed.
Modified:
subversion/trunk/subversion/bindings/swig/svn_delta.i
Modified: subversion/trunk/subversion/bindings/swig/svn_delta.i
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/svn_delta.i?rev=1506531&r1=1506530&r2=1506531&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/svn_delta.i (original)
+++ subversion/trunk/subversion/bindings/swig/svn_delta.i Wed Jul 24 12:46:01 2013
@@ -62,6 +62,16 @@
thunk editors for the various language bindings.
*/
+#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,
+ apr_pool_t *pool);
+#endif
+
#ifdef SWIGPERL
%typemap(in) (const svn_delta_editor_t *EDITOR, void *BATON) {
svn_swig_pl_make_editor(&$1, &$2, $input, _global_pool);