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

Re: make svn_client__open_ra_session() public (or: how to easily get a session)

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-05-01 19:02:41 CEST

Ben Collins-Sussman wrote:
> On May 1, 2005, at 11:46 AM, SteveKing wrote:
>> Hi,
>> For functions like svn_ra_get_locks() or svn_ra_get_repos_root() an
>> svn_ra_session_t object is needed. Currently, I'm using
>> svn_client__open_ra_session() to get such a session object. I know
>> that this function isn't public and shouldn't be used directly by
>> clients, but I haven't found an easier way.
>> So my request: could you make svn_client__open_ra_session a public
>> function or tell me how to create a session object with a public API?
> Um, it's the very first public function in svn_ra.h: svn_ra_open(). :-)
> Have you never used svn_ra.h before? I don't understand. svn_ra_open()
> has always been the foundation, the first thing you need to call before
> any other RA function...?

Well, yes I've seen that one. But: svn_client__open_ra_session() is
_much_ easier to use because it takes an svn_client_ctx_t structure
instead of an svn_ra_callbacks_t structure. And since most API calls I
use are svn_client_* ones, I already have an svn_client_ctx_t object
ready to pass to them. With svn_ra_callbacks_t, I'd have to create a new
object just for the svn_ra_* calls.

Well, I guess I have to get over it and just create an
svn_ra_callbacks_t object...

And thanks for the quick answer.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 1 19:05:13 2005

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

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