2 * Copyright © 2010 Codethink Limited
3 * Copyright © 2010 Novell, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the licence, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Authors: Vincent Untz <vuntz@gnome.org>
21 * Ryan Lortie <desrt@desrt.ca>
24 #ifndef __G_KEY_FILE_SETTINGS_BACKEND_H__
25 #define __G_KEY_FILE_SETTINGS_BACKEND_H__
27 #include <gio/gsettingsbackend.h>
30 #define G_TYPE_KEYFILE_SETTINGS_BACKEND (g_keyfile_settings_backend_get_type ())
31 #define G_KEYFILE_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
32 G_TYPE_KEYFILE_SETTINGS_BACKEND, \
33 GKeyfileSettingsBackend))
34 #define G_KEYFILE_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
35 G_TYPE_KEYFILE_SETTINGS_BACKEND, \
36 GKeyfileSettingsBackendClass))
37 #define G_IS_KEYFILE_SETTINGS_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
38 G_TYPE_KEYFILE_SETTINGS_BACKEND))
39 #define G_IS_KEYFILE_SETTINGS_BACKEND_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
40 G_TYPE_KEYFILE_SETTINGS_BACKEND))
41 #define G_KEYFILE_SETTINGS_BACKEND_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
42 G_TYPE_KEYFILE_SETTINGS_BACKEND, \
43 GKeyfileSettingsBackendClass))
46 * GKeyfileSettingsBackend:
48 * A backend to GSettings that stores the settings in keyfile.
50 typedef struct _GKeyfileSettingsBackendPrivate GKeyfileSettingsBackendPrivate;
51 typedef struct _GKeyfileSettingsBackendClass GKeyfileSettingsBackendClass;
52 typedef struct _GKeyfileSettingsBackend GKeyfileSettingsBackend;
54 struct _GKeyfileSettingsBackendClass
56 GSettingsBackendClass parent_class;
59 struct _GKeyfileSettingsBackend
61 GSettingsBackend parent_instance;
64 GKeyfileSettingsBackendPrivate *priv;
68 GType g_keyfile_settings_backend_get_type (void);
71 #endif /* __G_KEY_FILE_SETTINGS_BACKEND_H__ */