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

Re: RFC: TLS support in svn protocol

From: Ben Reser <ben_at_reser.org>
Date: 2004-07-28 19:04:25 CEST

On Fri, Jul 23, 2004 at 10:23:53PM +0200, Branko ??ibej wrote:
> I insist that svn_cmdline_init is _not _ the right place to do this
> initialisation. Instead, every library has to get its own init function
> (svn_client_init, ...), which should (of course) call the init functions
> of dependent libraries, as necessary.

Uhh no. You can't do stuff like that. It is perfectly valid for a
app to want to use multiple sets of our libraries directly. If
svn_client_init() calls the init functions for its dependencies and the
app uses some of our other libs then the init function has been called
more than once, which I don't believe is what you want.

This is the reason why we don't have an init function that calls
apr_initialize for people, but instead require they call apr_initialize
on their own. svn_cmdline_init() just happens to be how we do it for
our command line tools and we export that to avoid duplicating it across
all of them.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 28 19:04:51 2004

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.