Bug 621213 – GDBusProxy and well-known names
[platform/upstream/glib.git] / gio / gkeyfilesettingsbackend.h
1 /*
2  * Copyright © 2010 Codethink Limited
3  * Copyright © 2010 Novell, Inc.
4  *
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.
9  *
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.
14  *
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.
19  *
20  * Authors: Vincent Untz <vuntz@gnome.org>
21  *          Ryan Lortie <desrt@desrt.ca>
22  */
23
24 #ifndef __G_KEY_FILE_SETTINGS_BACKEND_H__
25 #define __G_KEY_FILE_SETTINGS_BACKEND_H__
26
27 #include <gio/gsettingsbackend.h>
28
29
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))
44
45 /*
46  * GKeyfileSettingsBackend:
47  *
48  * A backend to GSettings that stores the settings in keyfile.
49  */
50 typedef struct _GKeyfileSettingsBackendPrivate               GKeyfileSettingsBackendPrivate;
51 typedef struct _GKeyfileSettingsBackendClass                 GKeyfileSettingsBackendClass;
52 typedef struct _GKeyfileSettingsBackend                      GKeyfileSettingsBackend;
53
54 struct _GKeyfileSettingsBackendClass
55 {
56   GSettingsBackendClass parent_class;
57 };
58
59 struct _GKeyfileSettingsBackend
60 {
61   GSettingsBackend parent_instance;
62
63   /*< private >*/
64   GKeyfileSettingsBackendPrivate *priv;
65 };
66
67 G_GNUC_INTERNAL
68 GType g_keyfile_settings_backend_get_type (void);
69
70
71 #endif  /* __G_KEY_FILE_SETTINGS_BACKEND_H__ */