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

Re: request for comments from developers about issues 1004 and 901

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-08-12 21:48:31 CEST

"SteveKing" <steveking@gmx.ch> writes:

> I still don't know how such a union of structs should look like.

I haven't thought very deeply about the details, but something like

typedef struct {

   enum {
      svn_notify_add,
      svn_notify_progress,
      ...
   } type;

   union {

      struct svn_notify_add_data {
         const char *path;
         ...
      } add;

      struct svn_notify_progress_data {
         const char *path;
         int count;
         int max;
         ...
      } progress;

      ...

   } data;

} svn_notify_event_t;

typedef void (*svn_wc_notify_func_t)(void *baton, svn_notify_event_t *event);

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 12 21:49:46 2003

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.