summaryrefslogtreecommitdiff
path: root/src/trg-prefs.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-27 17:52:52 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-27 17:52:52 +0000
commit130057674213cb8c271ab5b50126c4e1206633bc (patch)
tree03baa2e8207f98edf956acef4e88842cb2761a55 /src/trg-prefs.h
parentbd758ee4fc423b9ca152a01f897609daa656c938 (diff)
use a saved pointer to the profile object instead of getting the index and retrieving each time
Diffstat (limited to 'src/trg-prefs.h')
-rw-r--r--src/trg-prefs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/trg-prefs.h b/src/trg-prefs.h
index 0bbdd74..b655d74 100644
--- a/src/trg-prefs.h
+++ b/src/trg-prefs.h
@@ -106,11 +106,12 @@ gchar *trg_prefs_get_string(TrgPrefs *p, gchar *key, int flags);
int trg_prefs_get_int(TrgPrefs *p, gchar *key, int flags);
gdouble trg_prefs_get_double(TrgPrefs *p, gchar *key, int flags);
gboolean trg_prefs_get_bool(TrgPrefs *p, gchar *key, int flags);
+JsonObject* trg_prefs_get_profile(TrgPrefs *p);
JsonArray* trg_prefs_get_profiles(TrgPrefs *p);
gint trg_prefs_get_profile_id(TrgPrefs *p);
-void trg_prefs_del_profile(TrgPrefs *p, guint index);
-void trg_prefs_set_profile(TrgPrefs *p, int index);
-gint trg_prefs_new_profile(TrgPrefs *p);
+void trg_prefs_del_profile(TrgPrefs *p, JsonObject *profile);
+void trg_prefs_set_profile(TrgPrefs *p, JsonObject *profile);
+JsonObject *trg_prefs_new_profile(TrgPrefs *p);
JsonObject *trg_get_current_profile(TrgPrefs *p);
JsonObject *trg_prefs_get_root(TrgPrefs *p);