summaryrefslogtreecommitdiff
path: root/client/dconf-client.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2010-07-18 23:23:54 -0400
committerRyan Lortie <desrt@desrt.ca>2010-07-18 23:23:54 -0400
commit67cb6fa67a608ba5b778e6e0bba9578a0a6ab075 (patch)
treea168ebcf2cf2291a903ae77c9af1c88c2bca1966 /client/dconf-client.h
parent4c375030eb6254b757b6fa1bba6dbd0c5d69774f (diff)
downloaddconf-67cb6fa67a608ba5b778e6e0bba9578a0a6ab075.tar.gz
assorted client API cleanups, vala port of 'dconf'
Diffstat (limited to 'client/dconf-client.h')
-rw-r--r--client/dconf-client.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/client/dconf-client.h b/client/dconf-client.h
index ba79044..d4d3eab 100644
--- a/client/dconf-client.h
+++ b/client/dconf-client.h
@@ -41,22 +41,11 @@ typedef void (*DConfWatchFunc) (DConfCl
GType dconf_client_get_type (void);
-DConfClient * dconf_client_new (const gchar *context,
- gboolean will_write,
+DConfClient * dconf_client_new (const gchar *profile,
DConfWatchFunc watch_func,
gpointer user_data,
GDestroyNotify notify);
-void dconf_client_new_async (const gchar *context,
- gboolean will_write,
- DConfWatchFunc watch_func,
- gpointer watch_func_data,
- GDestroyNotify notify,
- GAsyncReadyCallback callback,
- gpointer user_data);
-
-DConfClient * dconf_client_new_finish (GAsyncResult *result);
-
GVariant * dconf_client_read (DConfClient *client,
const gchar *key);
GVariant * dconf_client_read_default (DConfClient *client,
@@ -69,7 +58,7 @@ gchar ** dconf_client_list (DConfCl
gsize *length);
gboolean dconf_client_is_writable (DConfClient *client,
- const gchar *path,
+ const gchar *key,
GError **error);
gboolean dconf_client_write (DConfClient *client,
@@ -89,18 +78,18 @@ gboolean dconf_client_write_finish (DConfCl
gchar **tag,
GError **error);
-gboolean dconf_client_set_locked (DConfClient *client,
+gboolean dconf_client_set_lock (DConfClient *client,
const gchar *path,
gboolean locked,
GCancellable *cancellable,
GError **error);
-void dconf_client_set_locked_async (DConfClient *client,
+void dconf_client_set_lock_async (DConfClient *client,
const gchar *path,
gboolean locked,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-gboolean dconf_client_set_locked_finish (DConfClient *client,
+gboolean dconf_client_set_lock_finish (DConfClient *client,
GAsyncResult *result,
GError **error);
@@ -108,6 +97,7 @@ gboolean dconf_client_write_many (DConfCl
const gchar *prefix,
const gchar * const *keys,
GVariant **values,
+ gsize n_values,
gchar **tag,
GCancellable *cancellable,
GError **error);
@@ -115,6 +105,7 @@ void dconf_client_write_many_async (DConfCl
const gchar *prefix,
const gchar * const *keys,
GVariant **values,
+ gsize n_values,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);