Re: [e-users] serializing unions with Eet

2009-07-11 Thread Gustavo Sverzut Barbieri
On Tue, Jun 30, 2009 at 4:18 AM, Hanspeter Portnervento...@airpost.net wrote: hey there I'd like to seriailze this structure with Eet code typedef enum _Type Type; typedef struct _Value Value; enum _Type {NUMBER, STRING, ARRAY, OBJECT}; struct _Value {    Type type;    union {      

[e-users] serializing unions with Eet

2009-06-30 Thread Hanspeter Portner
hey there I'd like to seriailze this structure with Eet code typedef enum _Type Type; typedef struct _Value Value; enum _Type {NUMBER, STRING, ARRAY, OBJECT}; struct _Value { Type type; union { float number; char *string; Eina_List *array; Eina_Hash *object;