CSun Mar 6 22:56:21 2005 Soeren Sandmann <sandmann@redhat.com>

* sfile.c: Generate id's for objects and pointers.
This commit is contained in:
Søren Sandmann Pedersen
2005-03-07 03:58:04 +00:00
parent bff84b87c0
commit d07d245228
4 changed files with 211 additions and 40 deletions

18
sfile.h
View File

@ -3,6 +3,24 @@ typedef struct SFileInput SFileInput;
typedef struct SFileOutput SFileOutput;
typedef guint SType;
/* A possibly better API/naming scheme
*
* Serializer *serializer_new (SerializerFormat *format);
*
* SerializerReadContext *serializer_begin_read (serializer *serialize,
* const char *filename,
* GError *err);
* serializer_get_blah (SerializerReadContext *);
* void serialzier_end_read (...);
*
* SerializerWritecontext *...;
* serializer_begin_write (context);
* serializer_write_int ();
* serializer_end_write (..., GError **err);
*
*/
/* - Describing Types - */
SFormat *sformat_new (gpointer f);
gpointer sformat_new_record (const char *name,