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

Hide internal data in svn_wc_entry_t struct

From: Ivan Zhakov <chemodax_at_gmail.com>
Date: 2006-12-28 09:20:59 CET

Some data in svn_wc_entry_t is local and valuable only for libsvn_wc.
One of this exampe is new field keep_local which I've to introduce due
implementing svn rm --keep-local.
And I don't see reasons to publish such data and maintain it using ABI
policy, revv and etc.
So my idea is introduce private structure to store such data:
In include/svn_wc.h:
typedef struct svn_wc_entry_private_t;

typedef struct svn_wc_entry_t
  /* Public fields goes here. */

  /* Private fields. */
  svn_wc_entry_private_t private;
} svn_wc_entry_t;

And in libsvn_wc/wc.h we describe our private struct:
typedef struct svn_wc_entry_private_t;
  svn_boolean_t keep_local;
} struct svn_wc_entry_private_t;

Ivan Zhakov
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 28 09:21:07 2006

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