1 #ifndef foostatcachehfoo
2 #define foostatcachehfoo
7 This file is part of fusedav.
9 fusedav is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 fusedav is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 License for more details.
19 You should have received a copy of the GNU General Public License
20 along with fusedav; if not, write to the Free Software Foundation,
21 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 int stat_cache_get(const char *fn
, struct stat
*st
);
27 void stat_cache_set(const char *fn
, const struct stat
*st
);
28 void stat_cache_invalidate(const char*fn
);
30 void dir_cache_invalidate(const char*fn
);
31 void dir_cache_invalidate_parent(const char *fn
);
32 void dir_cache_begin(const char *fn
);
33 void dir_cache_finish(const char *fn
, int success
);
34 void dir_cache_add(const char *fn
, const char *subdir
, int is_dir
);
35 int dir_cache_enumerate(const char *fn
, void (*f
) (const char*fn
, const char *subdir
, int is_dir
, void *user
), void *user
);
37 void cache_free(void);
38 void cache_alloc(void);