summaryrefslogtreecommitdiff
path: root/sfile.h
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2005-04-23 23:18:42 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2005-04-23 23:18:42 +0000
commit984c6e17108f257dd5c9435eb92ca9643507d2d9 (patch)
treea5a9c1d2eb4b2694c1220c05e8eb44f74376086b /sfile.h
parent8424be60243f1e8db3ae05823d6b76968ab70495 (diff)
Store a pointer to the root of the call tree
Sat Apr 23 19:12:52 2005 Søren Sandmann <sandmann@redhat.com> * profile.c: Store a pointer to the root of the call tree * profile.c (profile_load): Call sfile_input_free() * sfile.c (sformat_free): Implement this function
Diffstat (limited to 'sfile.h')
-rw-r--r--sfile.h34
1 files changed, 21 insertions, 13 deletions
diff --git a/sfile.h b/sfile.h
index e3ec83b..b35c551 100644
--- a/sfile.h
+++ b/sfile.h
@@ -54,22 +54,29 @@ typedef guint SType;
*
* enums, optionals, selections, empties
*
+ *
+ *==============================================
+ * Also think about versioning - apps will want to be able to read and write
+ * different versions of the format, and they want to be able to sniff the
+ * format + version
+ *
*/
/* - Describing Types - */
-SFormat *sformat_new (gpointer f);
-gpointer sformat_new_record (const char *name,
- SType *type,
- gpointer content,
- ...);
-gpointer sformat_new_list (const char *name,
- SType *type,
- gpointer content);
-gpointer sformat_new_pointer (const char *name,
- SType *target_type);
-gpointer sformat_new_integer (const char *name);
-gpointer sformat_new_string (const char *name);
-void sformat_free (SFormat *format);
+SFormat *sformat_new (gpointer f);
+gpointer sformat_new_record (const char *name,
+ SType *type,
+ gpointer content,
+ ...);
+gpointer sformat_new_list (const char *name,
+ SType *type,
+ gpointer content);
+gpointer sformat_new_pointer (const char *name,
+ SType *target_type);
+gpointer sformat_new_integer (const char *name);
+gpointer sformat_new_string (const char *name);
+void sformat_free (SFormat *format);
+
/* - Reading - */
SFileInput * sfile_load (const char *filename,
@@ -89,6 +96,7 @@ void sfile_get_string (SFileInput *file,
void sfile_end_get (SFileInput *file,
const char *name,
gpointer object);
+void sfile_input_free (SFileInput *file);
#if 0
/* incremental loading (worth considering at least) */