[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Searching for a C++ API

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 30 Jan 2018 12:30:35 +0000

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
Received on 2018-01-30 13:33:32 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.