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, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Authors: Ryan Lortie <desrt@desrt.ca>
21 * Matthias Clasen <mclasen@redhat.com>
24 #ifndef __G_SETTINGS_BACKEND_INTERNAL_H__
25 #define __G_SETTINGS_BACKEND_INTERNAL_H__
27 #include "gsettingsbackend.h"
31 void (* changed) (GObject *target,
32 GSettingsBackend *backend,
35 void (* path_changed) (GObject *target,
36 GSettingsBackend *backend,
39 void (* keys_changed) (GObject *target,
40 GSettingsBackend *backend,
42 const gchar * const *names,
44 void (* writable_changed) (GObject *target,
45 GSettingsBackend *backend,
47 void (* path_writable_changed) (GObject *target,
48 GSettingsBackend *backend,
50 } GSettingsListenerVTable;
52 void g_settings_backend_watch (GSettingsBackend *backend,
53 const GSettingsListenerVTable *vtable,
55 GMainContext *context);
56 void g_settings_backend_unwatch (GSettingsBackend *backend,
59 GTree * g_settings_backend_create_tree (void);
61 GVariant * g_settings_backend_read (GSettingsBackend *backend,
63 const GVariantType *expected_type,
64 gboolean default_value);
65 GVariant * g_settings_backend_read_user_value (GSettingsBackend *backend,
67 const GVariantType *expected_type);
68 gboolean g_settings_backend_write (GSettingsBackend *backend,
72 gboolean g_settings_backend_write_tree (GSettingsBackend *backend,
75 void g_settings_backend_reset (GSettingsBackend *backend,
78 gboolean g_settings_backend_get_writable (GSettingsBackend *backend,
80 void g_settings_backend_unsubscribe (GSettingsBackend *backend,
82 void g_settings_backend_subscribe (GSettingsBackend *backend,
84 GPermission * g_settings_backend_get_permission (GSettingsBackend *backend,
86 void g_settings_backend_sync_default (void);
88 GType g_null_settings_backend_get_type (void);
90 GType g_memory_settings_backend_get_type (void);
93 GType g_nextstep_settings_backend_get_type (void);
96 #endif /* __G_SETTINGS_BACKEND_INTERNAL_H__ */