[dconf: 9/11] client: restrict list_locks to work on dirs
- From: Allison Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf: 9/11] client: restrict list_locks to work on dirs
- Date: Wed, 16 Dec 2015 16:35:57 +0000 (UTC)
commit 83aab3c11279c8a4cfe751f0f300ffdaa5c449e4
Author: Allison Ryan Lortie <desrt desrt ca>
Date: Wed Dec 16 10:40:49 2015 -0500
client: restrict list_locks to work on dirs
This was always the intention, and is even documented that way in the
gtk-doc block above. I'm not sure why I used paths.
In any case, this API has never been released, so the change is safe.
client/dconf-client.c | 6 +++---
client/dconf-client.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/client/dconf-client.c b/client/dconf-client.c
index 45288fc..11bdf3c 100644
--- a/client/dconf-client.c
+++ b/client/dconf-client.c
@@ -355,13 +355,13 @@ dconf_client_list (DConfClient *client,
*/
gchar **
dconf_client_list_locks (DConfClient *client,
- const gchar *path,
+ const gchar *dir,
gint *length)
{
g_return_val_if_fail (DCONF_IS_CLIENT (client), NULL);
- g_return_val_if_fail (dconf_is_path (path, NULL), NULL);
+ g_return_val_if_fail (dconf_is_dir (dir, NULL), NULL);
- return dconf_engine_list_locks (client->engine, path, length);
+ return dconf_engine_list_locks (client->engine, dir, length);
}
/**
diff --git a/client/dconf-client.h b/client/dconf-client.h
index 7ef709c..94c304a 100644
--- a/client/dconf-client.h
+++ b/client/dconf-client.h
@@ -44,7 +44,7 @@ gchar ** dconf_client_list (DConfCl
gint *length);
gchar ** dconf_client_list_locks (DConfClient *client,
- const gchar *path,
+ const gchar *dir,
gint *length);
gboolean dconf_client_is_writable (DConfClient *client,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]