Improve the g_file_make_symbolic_link docs
[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 void          (*GSettingsBackendChangedFunc)                    (GSettingsBackend    *backend,
30                                                                          GObject             *target,
31                                                                          const gchar         *key,
32                                                                          gpointer             origin_tag);
33 typedef void          (*GSettingsBackendPathChangedFunc)                (GSettingsBackend    *backend,
34                                                                          GObject             *target,
35                                                                          const gchar         *path,
36                                                                          gpointer             origin_tag);
37 typedef void          (*GSettingsBackendKeysChangedFunc)                (GSettingsBackend    *backend,
38                                                                          GObject             *target,
39                                                                          const gchar         *prefix,
40                                                                          const gchar * const *names,
41                                                                          gpointer             origin_tag);
42 typedef void          (*GSettingsBackendWritableChangedFunc)            (GSettingsBackend    *backend,
43                                                                          GObject             *target,
44                                                                          const gchar         *key);
45 typedef void          (*GSettingsBackendPathWritableChangedFunc)        (GSettingsBackend    *backend,
46                                                                          GObject             *target,
47                                                                          const gchar         *path);
48
49 G_GNUC_INTERNAL
50 void                    g_settings_backend_watch                        (GSettingsBackend                        *backend,
51                                                                          GObject                                 *target,
52                                                                          GMainContext                            *context,
53                                                                          GSettingsBackendChangedFunc              changed,
54                                                                          GSettingsBackendPathChangedFunc          path_changed,
55                                                                          GSettingsBackendKeysChangedFunc          keys_changed,
56                                                                          GSettingsBackendWritableChangedFunc      writable_changed,
57                                                                          GSettingsBackendPathWritableChangedFunc  path_writable_changed);
58 G_GNUC_INTERNAL
59 void                    g_settings_backend_unwatch                      (GSettingsBackend                     *backend,
60                                                                          GObject                              *target);
61
62 G_GNUC_INTERNAL
63 gboolean                        g_settings_backend_supports_context     (const gchar                          *context);
64 G_GNUC_INTERNAL
65 GSettingsBackend *              g_settings_backend_get_with_context     (const gchar                          *context);
66 G_GNUC_INTERNAL
67 GTree *                         g_settings_backend_create_tree          (void);
68 G_GNUC_INTERNAL
69 GVariant *                      g_settings_backend_read                 (GSettingsBackend                     *backend,
70                                                                          const gchar                          *key,
71                                                                          const GVariantType                   *expected_type,
72                                                                          gboolean                              default_value);
73 G_GNUC_INTERNAL
74 gboolean                        g_settings_backend_write                (GSettingsBackend                     *backend,
75                                                                          const gchar                          *key,
76                                                                          GVariant                             *value,
77                                                                          gpointer                              origin_tag);
78 G_GNUC_INTERNAL
79 gboolean                        g_settings_backend_write_keys           (GSettingsBackend                     *backend,
80                                                                          GTree                                *tree,
81                                                                          gpointer                              origin_tag);
82 G_GNUC_INTERNAL
83 void                            g_settings_backend_reset                (GSettingsBackend                     *backend,
84                                                                          const gchar                          *key,
85                                                                          gpointer                              origin_tag);
86
87 G_GNUC_INTERNAL
88 void                            g_settings_backend_reset_path           (GSettingsBackend                     *backend,
89                                                                          const gchar                          *path,
90                                                                          gpointer                              origin_tag);
91
92 G_GNUC_INTERNAL
93 gboolean                        g_settings_backend_get_writable         (GSettingsBackend                     *backend,
94                                                                          const char                           *key);
95 G_GNUC_INTERNAL
96 void                            g_settings_backend_unsubscribe          (GSettingsBackend                     *backend,
97                                                                          const char                           *name);
98 G_GNUC_INTERNAL
99 void                            g_settings_backend_subscribe            (GSettingsBackend                     *backend,
100                                                                          const char                           *name);
101 G_GNUC_INTERNAL
102 GMainContext *                  g_settings_backend_get_active_context   (void);
103
104 #endif  /* __G_SETTINGS_BACKEND_INTERNAL_H__ */