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

Re: rfc on structure changes

From: Madan U Sreenivasan <madan_at_collab.net>
Date: 2005-09-29 07:51:34 CEST

On Wed, 2005-09-28 at 15:11, Peter N. Lundblad wrote:
> On Wed, 28 Sep 2005, Madan U Sreenivasan wrote:
>
> > On Thu, 2005-09-22 at 00:17, Peter N. Lundblad wrote:
> > > On Wed, 21 Sep 2005, Madan U Sreenivasan wrote:
> [snip]
> > > You don't need to change anything in that struct:-) It is deprecated and
> > > not used anymore except for backwards compatibility. The internal
> > > svn_ra__vtable_t can be changed at will.
> > I'm stuck trying to change svn_ra__vtable_t (at will ;) ). Here, am
> > having to change the signature of the get_commit_editor member to use
> > svn_commit_callback2_t.
> >
> > Now, svn_ra_get_commit_editor() will have to be deprecated, and will
> > force us to retain usage of svn_commit_callback_t. Now this will force
> > us to retain all callbacks(even private) and functions that use them,
> > till the repos layer and for all three ra libraries.
>
> Why can't you just create a wrapper callback in the deprecated
> svn_ra_get_commit_editor. You create a function with the callback2
> signature, and a baton where you save the old-style callback and baton.
> Then, in svn_wc_get_commit_editor, you give that callback to
> svn_wc_get_commit_editor2. Your callback will call the old-style callback
> given to the deprecated function, extracting the fields from the struct. I
> haven't lookd in detail, so maybe *I* am missing something.
I was thinking the same too. But where do we map the user given
callback(svn_commit_callback_t) to our new wrapper
callback(svn_commit_callback2_t). In a global variable? I will look at
this option with more focus todya...

>
> Best,
> //Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 29 07:43:47 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.