aboutsummaryrefslogtreecommitdiff
path: root/src/gsettingsstrv.h
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-06-26 00:18:18 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-06-26 00:18:18 +0200
commit106146172620ce24dc34575a3ad5237251a80407 (patch)
treea1d8b762fcb70f46208e69dae7b2d4c1c7ba8e45 /src/gsettingsstrv.h
parent82c080337fc3f420043dab2784f598472c7cfda0 (diff)
downloadayatana-indicator-messages-106146172620ce24dc34575a3ad5237251a80407.tar.gz
ayatana-indicator-messages-106146172620ce24dc34575a3ad5237251a80407.tar.bz2
ayatana-indicator-messages-106146172620ce24dc34575a3ad5237251a80407.zip
messages-service.c: move gsettings strv handling into gsettingsstrv.[ch]
Diffstat (limited to 'src/gsettingsstrv.h')
-rw-r--r--src/gsettingsstrv.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gsettingsstrv.h b/src/gsettingsstrv.h
new file mode 100644
index 0000000..accebda
--- /dev/null
+++ b/src/gsettingsstrv.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2012 Canonical Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 3, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranties of
+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ * Lars Uebernickel <lars.uebernickel@canonical.com>
+ */
+
+#ifndef __G_SETTINGS_STRV_H__
+#define __G_SETTINGS_STRV_H__
+
+#include <gio/gio.h>
+
+gboolean g_settings_strv_append_unique (GSettings *settings,
+ const gchar *key,
+ const gchar *item);
+
+void g_settings_strv_remove (GSettings *settings,
+ const gchar *key,
+ const gchar *item);
+
+#endif