2 * Copyright © 2010 Codethink Limited
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the licence, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 * Author: Ryan Lortie <desrt@desrt.ca>
20 #ifndef __dconf_client_h__
21 #define __dconf_client_h__
24 #include "../common/dconf-changeset.h"
25 #include "../common/dconf-enums.h"
29 #define DCONF_TYPE_CLIENT (dconf_client_get_type ())
30 G_DECLARE_FINAL_TYPE(DConfClient
, dconf_client
, DCONF
, CLIENT
, GObject
)
32 DConfClient
* dconf_client_new (void);
34 GVariant
* dconf_client_read (DConfClient
*client
,
37 GVariant
* dconf_client_read_full (DConfClient
*client
,
40 const GQueue
*read_through
);
42 gchar
** dconf_client_list (DConfClient
*client
,
46 gchar
** dconf_client_list_locks (DConfClient
*client
,
50 gboolean
dconf_client_is_writable (DConfClient
*client
,
53 gboolean
dconf_client_write_fast (DConfClient
*client
,
57 gboolean
dconf_client_write_sync (DConfClient
*client
,
61 GCancellable
*cancellable
,
64 gboolean
dconf_client_change_fast (DConfClient
*client
,
65 DConfChangeset
*changeset
,
67 gboolean
dconf_client_change_sync (DConfClient
*client
,
68 DConfChangeset
*changeset
,
70 GCancellable
*cancellable
,
73 void dconf_client_watch_fast (DConfClient
*client
,
75 void dconf_client_watch_sync (DConfClient
*client
,
78 void dconf_client_unwatch_fast (DConfClient
*client
,
80 void dconf_client_unwatch_sync (DConfClient
*client
,
83 void dconf_client_sync (DConfClient
*client
);
88 #endif /* __dconf_client_h__ */