Madan U Sreenivasan wrote:
>Hi,
>
> This is a request for modifying the way certain publicly available
>structures are written. The below is the only example am able to give...
>but its possible that there are more like this...
>
> svn_ra_plugin_t structure in subversion/include/svn_ra.h. I need to
>change a parameter of the svn_commit_callback_t member.
> To do this, I have to
>- deprecate svn_ra_plugin_t with svn_ra_plugin2_t
>- replace/deprecate all functions using svn_ra_plugin_t
>
> This is a non-trivial way to make a change to a data structure...
>
> An easier way to do such a change would be to deprecate only the
>member that needs to change with a new member, added at the bottom.
>
> I know these are not the best ways to achieve what is required here.
>I would like start a thread/issue to discuss and implement the changes
>required to make life easier for us in future.
>
>
You can only do that with structures that are not allocated by their
user but by a constructor function. We made this change recently with
svn_ra_callbacks2_t; the original didn't have a constructor, the new
structure does.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 21 14:21:12 2005