source: FTPfs/sshfs-fuse-1.9/cache.h @ 157

Last change on this file since 157 was 10, checked in by zsjheng, 17 years ago
File size: 899 bytes
Line 
1/*
2    Caching file system proxy
3    Copyright (C) 2004  Miklos Szeredi <miklos@szeredi.hu>
4
5    This program can be distributed under the terms of the GNU GPL.
6    See the file COPYING.
7*/
8
9#include <fuse.h>
10#include <fuse_opt.h>
11
12#ifndef FUSE_VERSION
13#define FUSE_VERSION (FUSE_MAJOR_VERSION * 10 + FUSE_MINOR_VERSION)
14#endif
15
16typedef struct fuse_cache_dirhandle *fuse_cache_dirh_t;
17typedef int (*fuse_cache_dirfil_t) (fuse_cache_dirh_t h, const char *name,
18                                    const struct stat *stbuf);
19
20struct fuse_cache_operations {
21    struct fuse_operations oper;
22    int (*cache_getdir) (const char *, fuse_cache_dirh_t, fuse_cache_dirfil_t);
23};
24
25struct fuse_operations *cache_init(struct fuse_cache_operations *oper);
26int cache_parse_options(struct fuse_args *args);
27void cache_add_attr(const char *path, const struct stat *stbuf);
28void cache_invalidate(const char *path);
Note: See TracBrowser for help on using the repository browser.