diff options
author | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-11-17 23:08:47 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-11-17 23:08:47 +0000 |
commit | 38891db079edd0c5aa864616cf339b20f8103b27 (patch) | |
tree | a07a9380979acd2a7afb2058acb4fa07779f1e06 /sfile.h | |
parent | e148f45f792ac17dd17f387cd223df224a6d6615 (diff) |
*** empty log message ***
Diffstat (limited to 'sfile.h')
-rw-r--r-- | sfile.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -1,13 +1,14 @@ typedef struct SFormat SFormat; -typedef struct SFile SFile; +typedef struct SFileInput SFileInput; +typedef struct SFileOutput SFileOutput; /* - Describing Types - */ SFormat *sformat_new (gpointer f); gpointer sformat_new_record (const char *name, - SFormat *content, + gpointer content, ...); gpointer sformat_new_list (const char *name, - SFormat *content); + gpointer content); gpointer sformat_new_pointer (const char *name); gpointer sformat_new_integer (const char *name); gpointer sformat_new_string (const char *name); @@ -40,18 +41,18 @@ void sfile_loader_free (SFileLoader *loader); /* - Writing - */ SFileOutput * sfile_output_mew (SFormat *format); -void sfile_begin_add_record (SFile *file, +void sfile_begin_add_record (SFileOutput *file, gpointer id); -void sfile_begin_add_list (SFile *file, +void sfile_begin_add_list (SFileOutput *file, gpointer id); -void sfile_end_add (SFile *file); -void sfile_add_string (SFile *file, +void sfile_end_add (SFileOutput *file); +void sfile_add_string (SFileOutput *file, const char *string); -void sfile_add_integer (SFile *file, +void sfile_add_integer (SFileOutput *file, int integer); -void sfile_add_pointer (SFile *file, +void sfile_add_pointer (SFileOutput *file, gpointer pointer); -gboolean sfile_save (SFile *sfile, +gboolean sfile_save (SFileOutput *sfile, const char *filename, GError **err); |