Files
curlftpfs/cache.h
Colin 761dac3d64 ftpfs_readdir: specify all parameters to filler
else they may be filled with garbage instead
2024-10-23 10:03:00 +00:00

33 lines
892 B
C

#ifndef __CURLFTPFS_CACHE_H__
#define __CURLFTPFS_CACHE_H__
/*
Caching file system proxy
Copyright (C) 2004 Miklos Szeredi <miklos@szeredi.hu>
This program can be distributed under the terms of the GNU GPL.
See the file COPYING.
*/
#include <fuse.h>
#include <fuse_opt.h>
#define DEFAULT_CACHE_TIMEOUT 10
#define MAX_CACHE_SIZE 10000
#define MIN_CACHE_CLEAN_INTERVAL 5
#define CACHE_CLEAN_INTERVAL 60
typedef struct fuse_cache_dirhandle *fuse_cache_dirh_t;
struct fuse_cache_operations {
struct fuse_operations oper;
};
struct fuse_operations *cache_init(struct fuse_cache_operations *oper);
int cache_parse_options(struct fuse_args *args);
void cache_add_attr(const char *path, const struct stat *stbuf);
void cache_add_dir(const char *path, char **dir);
void cache_add_link(const char *path, const char *link, size_t size);
#endif /* __CURLFTPFS_CACHE_H__ */