| author | Tero Marttila <terom@fixme.fi> |
| Sat, 13 Dec 2008 20:58:27 +0200 | |
| branch | new-evsql |
| changeset 55 | 0b92d553400a |
| parent 6 | d2036d7799fd |
| permissions | -rw-r--r-- |
1 #ifndef SIMPLE_H
2 #define SIMPLE_H
4 /*
5 * A simple static in-memory filesystem structure.
6 */
8 #include "evfuse.h"
10 /*
11 * A simple file/dir.
12 */
13 struct simple_node {
14 // inode number
15 fuse_ino_t inode;
17 // mode
18 mode_t mode_type;
19 mode_t mode_perm;
21 // parent node
22 fuse_ino_t parent;
24 // name
25 const char *name;
27 // data
28 const char *data;
29 };
31 /*
32 * General information.
33 */
34 struct simple_fs;
36 /*
37 * Initialize simple, and get the fuse_lowlevel_ops.
38 */
39 struct fuse_lowlevel_ops *simple_init ();
41 /*
42 * Create a new simple_fs.
43 */
44 struct simple_fs *simple_new (const struct simple_node *node_list);
46 #endif /* SIMPLE_H */