Fix problems with CLEANFILES and automake-1.11.1
[platform/upstream/glib.git] / gio / gsettingsbackendinternal.h
1 /*
2  * Copyright © 2009, 2010 Codethink Limited
3  * Copyright © 2010 Red Hat, 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: Ryan Lortie <desrt@desrt.ca>
21  *          Matthias Clasen <mclasen@redhat.com>
22  */
23
24 #ifndef __G_SETTINGS_BACKEND_INTERNAL_H__
25 #define __G_SETTINGS_BACKEND_INTERNAL_H__
26
27 #include "gsettingsbackend.h"
28
29 typedef struct
30 {
31   void (* changed)               (GObject             *target,
32                                   GSettingsBackend    *backend,
33                                   const gchar         *key,
34                                   gpointer             origin_tag);
35   void (* path_changed)          (GObject             *target,
36                                   GSettingsBackend    *backend,
37                                   const gchar         *path,
38                                   gpointer             origin_tag);
39   void (* keys_changed)          (GObject             *target,
40                                   GSettingsBackend    *backend,
41                                   const gchar         *prefix,
42                                   const gchar * const *names,
43                                   gpointer             origin_tag);
44   void (* writable_changed)      (GObject             *target,
45                                   GSettingsBackend    *backend,
46                                   const gchar         *key);
47   void (* path_writable_changed) (GObject             *target,
48                                   GSettingsBackend    *backend,
49                                   const gchar         *path);
50 } GSettingsListenerVTable;
51
52 G_GNUC_INTERNAL
53 void                    g_settings_backend_watch                        (GSettingsBackend               *backend,
54                                                                          const GSettingsListenerVTable  *vtable,
55                                                                          GObject                        *target,
56                                                                          GMainContext                   *context);
57 G_GNUC_INTERNAL
58 void                    g_settings_backend_unwatch                      (GSettingsBackend               *backend,
59                                                                          GObject                        *target);
60
61 G_GNUC_INTERNAL
62 GTree *                 g_settings_backend_create_tree                  (void);
63
64 G_GNUC_INTERNAL
65 GVariant *              g_settings_backend_read                         (GSettingsBackend               *backend,
66                                                                          const gchar                    *key,
67                                                                          const GVariantType             *expected_type,
68                                                                          gboolean                        default_value);
69 G_GNUC_INTERNAL
70 gboolean                g_settings_backend_write                        (GSettingsBackend               *backend,
71                                                                          const gchar                    *key,
72                                                                          GVariant                       *value,
73                                                                          gpointer                        origin_tag);
74 G_GNUC_INTERNAL
75 gboolean                g_settings_backend_write_tree                   (GSettingsBackend               *backend,
76                                                                          GTree                          *tree,
77                                                                          gpointer                        origin_tag);
78 G_GNUC_INTERNAL
79 void                    g_settings_backend_reset                        (GSettingsBackend               *backend,
80                                                                          const gchar                    *key,
81                                                                          gpointer                        origin_tag);
82 G_GNUC_INTERNAL
83 gboolean                g_settings_backend_get_writable                 (GSettingsBackend               *backend,
84                                                                          const char                     *key);
85 G_GNUC_INTERNAL
86 void                    g_settings_backend_unsubscribe                  (GSettingsBackend               *backend,
87                                                                          const char                     *name);
88 G_GNUC_INTERNAL
89 void                    g_settings_backend_subscribe                    (GSettingsBackend               *backend,
90                                                                          const char                     *name);
91 G_GNUC_INTERNAL
92 GPermission *           g_settings_backend_get_permission               (GSettingsBackend               *backend,
93                                                                          const gchar                    *path);
94 G_GNUC_INTERNAL
95 void                    g_settings_backend_sync_default                 (void);
96
97 G_GNUC_INTERNAL
98 GType                   g_null_settings_backend_get_type                (void);
99
100 G_GNUC_INTERNAL
101 GType                   g_memory_settings_backend_get_type              (void);
102
103 #ifdef HAVE_COCOA
104 G_GNUC_INTERNAL
105 GType                   g_nextstep_settings_backend_get_type            (void);
106 #endif
107
108 #endif  /* __G_SETTINGS_BACKEND_INTERNAL_H__ */