Rev 2645 | Rev 2658 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2645 | Rev 2655 | ||
|---|---|---|---|
| Line 40... | Line 40... | ||
| 40 | #include <bool.h> |
40 | #include <bool.h> |
| 41 | 41 | ||
| 42 | #define dprintf(...) printf(__VA_ARGS__) |
42 | #define dprintf(...) printf(__VA_ARGS__) |
| 43 | 43 | ||
| 44 | typedef struct tmpfs_dentry { |
44 | typedef struct tmpfs_dentry { |
| - | 45 | unsigned index; /**< TMPFS node index. */ |
|
| 45 | struct tmpfs_dentry *parent; |
46 | struct tmpfs_dentry *parent; |
| 46 | struct tmpfs_dentry *sibling; |
47 | struct tmpfs_dentry *sibling; |
| 47 | struct tmpfs_dentry *child; |
48 | struct tmpfs_dentry *child; |
| 48 | char *name; |
49 | char *name; |
| - | 50 | enum { |
|
| - | 51 | TMPFS_NONE, |
|
| - | 52 | TMPFS_FILE, |
|
| - | 53 | TMPFS_DIRECTORY |
|
| - | 54 | } type; |
|
| - | 55 | size_t size; /**< File size if type is TMPFS_FILE. */ |
|
| - | 56 | void *data; /**< File content's if type is TMPFS_FILE. */ |
|
| 49 | } tmpfs_dentry_t; |
57 | } tmpfs_dentry_t; |
| 50 | 58 | ||
| 51 | extern fs_reg_t tmpfs_reg; |
59 | extern fs_reg_t tmpfs_reg; |
| 52 | 60 | ||
| 53 | extern void tmpfs_lookup(ipc_callid_t, ipc_call_t *); |
61 | extern void tmpfs_lookup(ipc_callid_t, ipc_call_t *); |