Reflected 'captive' branch authors.
[gnome-vfs-httpcaptive.git] / modules / http-cache.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* http-cache.c - Property caching for DAV
3
4    Copyright (C) 2000-2001 Eazel, Inc.
5
6    The Gnome Library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Library General Public License as
8    published by the Free Software Foundation; either version 2 of the
9    License, or (at your option) any later version.
10
11    The Gnome Library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Library General Public License for more details.
15
16    You should have received a copy of the GNU Library General Public
17    License along with the Gnome Library; see the file COPYING.LIB.  If not,
18    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.
20
21    Authors: 
22                  Michael Fleming <mfleming@eazel.com>
23 */
24
25 #ifndef HTTP_CACHE_H
26 #define HTTP_CACHE_H
27
28 #include <libgnomevfs/gnome-vfs-file-info.h>
29 #include <libgnomevfs/gnome-vfs-uri.h>
30
31 void                    http_cache_init                                 (void);
32 void                    http_cache_shutdown                             (void);
33
34 void                    http_cache_trim                                 (void);
35 GnomeVFSFileInfo *      http_cache_check                                (const gchar * uri_string);
36 GnomeVFSFileInfo *      http_cache_check_uri                            (GnomeVFSURI *uri);
37 GnomeVFSFileInfo *      http_cache_check_directory                      (const gchar * uri_string,
38                                                                          GList **p_child_file_info_list);
39 GnomeVFSFileInfo *      http_cache_check_directory_uri                  (GnomeVFSURI *uri,
40                                                                          GList **p_child_file_info_list);
41 void                    http_cache_add_uri_and_children                 (GnomeVFSURI *uri, 
42                                                                          GnomeVFSFileInfo *file_info, 
43                                                                          GList *file_info_list);
44 void                    http_cache_add_uri                              (GnomeVFSURI *uri,
45                                                                          GnomeVFSFileInfo *file_info,
46                                                                          gboolean is_dav);
47 void                    http_cache_invalidate                           (const gchar *uri_string);
48 void                    http_cache_invalidate_uri                       (GnomeVFSURI *uri);
49 void                    http_cache_invalidate_entry_and_children        (const gchar * uri_string);
50 void                    http_cache_invalidate_uri_and_children          (GnomeVFSURI *uri);
51 void                    http_cache_invalidate_uri_parent                (GnomeVFSURI *uri);
52
53 #endif /* HTTP_CACHE_H */