diff options
author | Havoc Pennington <hp@src.gnome.org> | 1999-12-23 22:06:30 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 1999-12-23 22:06:30 +0000 |
commit | 38eb7950e7653b4704d465bf56fbd76cd00ac23b (patch) | |
tree | 949dc6d2cd365aa613c897c39bbc38377d2b30f4 /backends/xml-cache.h | |
parent | 811b3f1a8aba1902d3c0ca0ed041e4033c9a91e6 (diff) | |
download | gconf-38eb7950e7653b4704d465bf56fbd76cd00ac23b.tar.gz |
work on the XML backend cleanup
Diffstat (limited to 'backends/xml-cache.h')
-rw-r--r-- | backends/xml-cache.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/backends/xml-cache.h b/backends/xml-cache.h new file mode 100644 index 00000000..2191707e --- /dev/null +++ b/backends/xml-cache.h @@ -0,0 +1,43 @@ +/* GConf + * Copyright (C) 1999 Red Hat Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GCONF_XML_CACHE_H +#define GCONF_XML_CACHE_H + +#include <gconf/gconf.h> +#include <gnome-xml/tree.h> +#include "xml-dir.h" + +typedef struct _Cache Cache; + +Cache* cache_new (const gchar *root_dir); +void cache_destroy (Cache *cache); +gboolean cache_sync (Cache *cache, + GConfError **err); +void cache_clean (Cache *cache, + GTime older_than); +void cache_delete_dir (Cache *cache, + const gchar *key, + GConfError **err); +Dir* cache_lookup (Cache *cache, + const gchar *key, + gboolean create_if_missing, + GConfError **err); + +#endif |