2 * Copyright © 2009, 2010 Codethink Limited
3 * Copyright © 2010 Red Hat, 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, see <http://www.gnu.org/licenses/>.
18 * Authors: Ryan Lortie <desrt@desrt.ca>
19 * Matthias Clasen <mclasen@redhat.com>
22 #ifndef __G_SETTINGS_BACKEND_INTERNAL_H__
23 #define __G_SETTINGS_BACKEND_INTERNAL_H__
25 #include "gsettingsbackend.h"
29 void (* changed
) (GObject
*target
,
30 GSettingsBackend
*backend
,
33 void (* path_changed
) (GObject
*target
,
34 GSettingsBackend
*backend
,
37 void (* keys_changed
) (GObject
*target
,
38 GSettingsBackend
*backend
,
41 const gchar
* const *names
);
42 void (* writable_changed
) (GObject
*target
,
43 GSettingsBackend
*backend
,
45 void (* path_writable_changed
) (GObject
*target
,
46 GSettingsBackend
*backend
,
48 } GSettingsListenerVTable
;
50 void g_settings_backend_watch (GSettingsBackend
*backend
,
51 const GSettingsListenerVTable
*vtable
,
53 GMainContext
*context
);
54 void g_settings_backend_unwatch (GSettingsBackend
*backend
,
57 GTree
* g_settings_backend_create_tree (void);
59 GVariant
* g_settings_backend_read (GSettingsBackend
*backend
,
61 const GVariantType
*expected_type
,
62 gboolean default_value
);
63 GVariant
* g_settings_backend_read_user_value (GSettingsBackend
*backend
,
65 const GVariantType
*expected_type
);
66 gboolean
g_settings_backend_write (GSettingsBackend
*backend
,
70 gboolean
g_settings_backend_write_tree (GSettingsBackend
*backend
,
73 void g_settings_backend_reset (GSettingsBackend
*backend
,
76 gboolean
g_settings_backend_get_writable (GSettingsBackend
*backend
,
78 void g_settings_backend_unsubscribe (GSettingsBackend
*backend
,
80 void g_settings_backend_subscribe (GSettingsBackend
*backend
,
82 GPermission
* g_settings_backend_get_permission (GSettingsBackend
*backend
,
84 void g_settings_backend_sync_default (void);
86 GType
g_null_settings_backend_get_type (void);
88 GType
g_memory_settings_backend_get_type (void);
91 GType
g_nextstep_settings_backend_get_type (void);
94 #endif /* __G_SETTINGS_BACKEND_INTERNAL_H__ */