GConf backend for settings
[tunertool] / src / settings.h
diff --git a/src/settings.h b/src/settings.h
new file mode 100644 (file)
index 0000000..11ba480
--- /dev/null
@@ -0,0 +1,38 @@
+/* vim: set sts=2 sw=2 et: */
+/*
+ * Copyright (C) 2008 Jari Tenhunen <jari.tenhunen@iki.fi>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __SETTINGS_H__
+#define __SETTINGS_H__
+
+#include <gconf/gconf-client.h>
+
+#define GCONF_ROOT "/apps/tuner"
+#define GCONF_KEY_ALGORITHM GCONF_ROOT "/algorithm"
+#define GCONF_KEY_CALIBRATION GCONF_ROOT "/calibration"
+#define GCONF_KEY_DISPLAY_KEEPALIVE GCONF_ROOT "/display_keepalive"
+
+gint settings_get_algorithm (gint default_value);
+gint settings_get_calibration (gint default_value);
+gboolean settings_set_calibration (gint value);
+gboolean settings_get_display_keepalive (gboolean default_value);
+gboolean settings_init (GConfClientNotifyFunc func, gpointer user_data);
+
+#endif /* __SETTINGS_H__ */
+