forked from haiwen/seafile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseaf-fuse.h
29 lines (22 loc) · 922 Bytes
/
seaf-fuse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef SEAF_FUSE_H
#define SEAF_FUSE_H
#include "seafile-session.h"
int parse_fuse_path (const char *path,
int *n_parts, char **user, char **repo_id, char **repo_path);
SeafDirent *
fuse_get_dirent_by_path (SeafFSManager *mgr,
const char *repo_id,
int version,
const char *root_id,
const char *path);
/* file.c */
int read_file(SeafileSession *seaf, const char *store_id, int version,
Seafile *file, char *buf, size_t size,
off_t offset, struct fuse_file_info *info);
/* getattr.c */
int do_getattr(SeafileSession *seaf, const char *path, struct stat *stbuf);
/* readdir.c */
int do_readdir(SeafileSession *seaf, const char *path, void *buf,
fuse_fill_dir_t filler, off_t offset,
struct fuse_file_info *info);
#endif /* SEAF_FUSE_H */