summaryrefslogtreecommitdiff
path: root/xfconfd/xfconf-backend.c
diff options
context:
space:
mode:
authorBrian Tarricone <brian@tarricone.org>2008-07-29 04:57:49 +0000
committerBrian Tarricone <brian@tarricone.org>2008-07-29 04:57:49 +0000
commit50dd9eacbfab44ee1f7f677e12023f8ed7cdfa24 (patch)
tree8623a78353e4344e010bf002f2f03ca255d68efc /xfconfd/xfconf-backend.c
parentdebf9df8811d3e061960a80e082a92e063e36a56 (diff)
downloadxfconf-50dd9eacbfab44ee1f7f677e12023f8ed7cdfa24.tar.gz
add ListChannels() method to dbus iface and xfconf_list_channels()
(Old svn revision: 27395)
Diffstat (limited to 'xfconfd/xfconf-backend.c')
-rw-r--r--xfconfd/xfconf-backend.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/xfconfd/xfconf-backend.c b/xfconfd/xfconf-backend.c
index df03d74..35631ea 100644
--- a/xfconfd/xfconf-backend.c
+++ b/xfconfd/xfconf-backend.c
@@ -405,6 +405,31 @@ xfconf_backend_remove(XfconfBackend *backend,
}
/**
+ * xfconf_backend_list_channels:
+ * @backend: The #XfconfBackend.
+ * @channels: A pointer to a #GSList head.
+ *
+ * Instructs the backend to return a list of channels with
+ * configuration data stored in the configuration store.
+ *
+ * Return value: The backend should return %TRUE if the operation
+ * was successful, or %FALSE otherwise. On %FALSE,
+ * @error should be set to a description of the failure.
+ **/
+gboolean
+xfconf_backend_list_channels(XfconfBackend *backend,
+ GSList **channels,
+ GError **error)
+{
+ XfconfBackendInterface *iface = XFCONF_BACKEND_GET_INTERFACE(backend);
+
+ xfconf_backend_return_val_if_fail(iface && iface->list_channels
+ && (!error || !*error), FALSE);
+
+ return iface->list_channels(backend, channels, error);
+}
+
+/**
* xfconf_backend_flush
* @backend: The #XfconfBackend.
* @error: An error return.