R developer wrote on Tue, 30 Jan 2018 10:22 +0100:
> I'm not that familiar with the C API unless I'm missing something
> (which is very well possible) one would have to manage the apr pools
> himself?

In the C API, the caller of a function passes to it a result_pool and a
scratch_pool, and decides when to reclaim or free their memory space
(apr_pool_clear / apr_pool_destroy).

> for instance
> https://svn.apache.org/repos/asf/subversion/trunk/tools/examples/minimal_client.c
> does seem very complex to me for the tasks it performs is there any
> easier C example out there?

svnlook? svnmucc? subversion/tests/cmdline/*.c?

There were C++ language bindings developed in trunk, see
subversion/bindings/cxxhl/.  I don't know what the state of the art on
that is --- quite possibly they aren't stable yet --- but they are
Apache Licensed, so perhaps you could build on them.  If they don't
yet provide some functionality which you require, please do send
patches :-).

Cheers,

Daniel

Reply via email to