summaryrefslogtreecommitdiff
path: root/profile.h
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@src.gnome.org>2004-11-12 15:21:07 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2004-11-12 15:21:07 +0000
commit17e3ce236bc8cd7af0e9094686125278b4285a94 (patch)
tree59f47ee3214896d8b61139dbdc3f40e490257c3d /profile.h
parent5136a4049c449d1ef7a17abc6146bc4ecd12a352 (diff)
various small fixes
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/profile.h b/profile.h
index 4940450..64165e6 100644
--- a/profile.h
+++ b/profile.h
@@ -49,12 +49,6 @@ struct ProfileDescendant
int marked_total;
};
-struct Profile
-{
- gint profile_size;
- GList * objects;
-};
-
struct ProfileCaller
{
ProfileObject * object; /* can be NULL */
@@ -66,9 +60,16 @@ struct ProfileCaller
Profile * profile_new (StackStash *stash);
void profile_free (Profile *profile);
+gint profile_get_size (Profile *profile);
+GList * profile_get_objects (Profile *profile);
ProfileDescendant *profile_create_descendants (Profile *prf,
ProfileObject *object);
ProfileCaller * profile_list_callers (Profile *profile,
ProfileObject *callee);
void profile_caller_free (ProfileCaller *caller);
void profile_descendant_free (ProfileDescendant *descendant);
+gboolean profile_save (Profile *profile,
+ const char *file_name,
+ GError **err);
+Profile * profile_load (const char *filename,
+ GError **err);