summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config/profiles.c6
-rw-r--r--src/config/profiles.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/config/profiles.c b/src/config/profiles.c
index df27983..36d3293 100644
--- a/src/config/profiles.c
+++ b/src/config/profiles.c
@@ -141,6 +141,12 @@ mq_profiles_set_default(MqProfiles *profiles, const gchar *profile)
}
gboolean
+mq_profiles_remove(MqProfiles *profiles, const gchar *profile)
+{
+ return g_key_file_remove_group(profiles->key_file, profile, NULL);
+}
+
+gboolean
mq_profiles_save(MqProfiles *profiles)
{
/* TODO: Handle GFileError? */
diff --git a/src/config/profiles.h b/src/config/profiles.h
index 0159461..6783b10 100644
--- a/src/config/profiles.h
+++ b/src/config/profiles.h
@@ -55,6 +55,9 @@ void
mq_profiles_set_default(MqProfiles *profiles, const gchar *profile);
gboolean
+mq_profiles_remove(MqProfiles *profiles, const gchar *profile);
+
+gboolean
mq_profiles_save(MqProfiles *profiles);
G_END_DECLS