]>
Commit | Line | Data |
---|---|---|
1 | #ifndef __LXCFS_BINDINGS_H | |
2 | #define __LXCFS_BINDINGS_H | |
3 | ||
4 | #include "macro.h" | |
5 | ||
6 | /* directory under which we mount the controllers - /run/lxcfs/controllers */ | |
7 | #define BASEDIR RUNTIME_PATH "/lxcfs/controllers" | |
8 | #define ROOTDIR RUNTIME_PATH "/lxcfs/root" | |
9 | ||
10 | extern int cg_write(const char *path, const char *buf, size_t size, off_t offset, | |
11 | struct fuse_file_info *fi); | |
12 | extern int cg_mkdir(const char *path, mode_t mode); | |
13 | extern int cg_chown(const char *path, uid_t uid, gid_t gid); | |
14 | extern int cg_rmdir(const char *path); | |
15 | extern int cg_chmod(const char *path, mode_t mode); | |
16 | extern int cg_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, | |
17 | struct fuse_file_info *fi); | |
18 | extern int cg_releasedir(const char *path, struct fuse_file_info *fi); | |
19 | extern int cg_release(const char *path, struct fuse_file_info *fi); | |
20 | extern int cg_read(const char *path, char *buf, size_t size, off_t offset, | |
21 | struct fuse_file_info *fi); | |
22 | extern int cg_opendir(const char *path, struct fuse_file_info *fi); | |
23 | extern int cg_getattr(const char *path, struct stat *sb); | |
24 | extern int cg_open(const char *path, struct fuse_file_info *fi); | |
25 | extern int cg_access(const char *path, int mode); | |
26 | ||
27 | extern int proc_getattr(const char *path, struct stat *sb); | |
28 | extern int proc_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, | |
29 | struct fuse_file_info *fi); | |
30 | extern int proc_release(const char *path, struct fuse_file_info *fi); | |
31 | extern int proc_open(const char *path, struct fuse_file_info *fi); | |
32 | extern int proc_read(const char *path, char *buf, size_t size, off_t offset, | |
33 | struct fuse_file_info *fi); | |
34 | extern int proc_access(const char *path, int mask); | |
35 | ||
36 | #endif /* __LXCFS_BINDINGS_H */ |