From 50dd9eacbfab44ee1f7f677e12023f8ed7cdfa24 Mon Sep 17 00:00:00 2001 From: Brian Tarricone Date: Tue, 29 Jul 2008 04:57:49 +0000 Subject: add ListChannels() method to dbus iface and xfconf_list_channels() (Old svn revision: 27395) --- xfconfd/xfconf-backend.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'xfconfd/xfconf-backend.c') 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 @@ -404,6 +404,31 @@ xfconf_backend_remove(XfconfBackend *backend, return iface->remove(backend, channel, property, recursive, error); } +/** + * 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. -- cgit v1.2.1