Rev 2644 | Rev 2758 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2644 | Rev 2747 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | #include <stdint.h> |
40 | #include <stdint.h> |
41 | #include <ipc/ipc.h> |
41 | #include <ipc/ipc.h> |
42 | #include <async.h> |
42 | #include <async.h> |
43 | 43 | ||
44 | typedef struct { |
44 | typedef struct { |
- | 45 | bool (* match)(void *, const char *); |
|
- | 46 | void * (* create)(int); |
|
- | 47 | void (* destroy)(void *); |
|
- | 48 | bool (* link)(void *, void *, const char *); |
|
- | 49 | int (* unlink)(void *); |
|
- | 50 | unsigned long (* index_get)(void *); |
|
- | 51 | unsigned long (* size_get)(void *); |
|
- | 52 | unsigned (* lnkcnt_get)(void *); |
|
- | 53 | void *(* child_get)(void *); |
|
- | 54 | void *(* sibling_get)(void *); |
|
- | 55 | void *(* root_get)(void); |
|
- | 56 | char (* plb_get_char)(unsigned pos); |
|
- | 57 | bool (* is_directory)(void *); |
|
- | 58 | bool (* is_file)(void *); |
|
- | 59 | } libfs_ops_t; |
|
- | 60 | ||
- | 61 | typedef struct { |
|
45 | int fs_handle; /**< File system handle. */ |
62 | int fs_handle; /**< File system handle. */ |
46 | ipcarg_t vfs_phonehash; /**< Initial VFS phonehash. */ |
63 | ipcarg_t vfs_phonehash; /**< Initial VFS phonehash. */ |
47 | uint8_t *plb_ro; /**< Read-only PLB view. */ |
64 | uint8_t *plb_ro; /**< Read-only PLB view. */ |
48 | } fs_reg_t; |
65 | } fs_reg_t; |
49 | 66 | ||
Line 53... | Line 70... | ||
53 | extern int block_write(int, unsigned long, void *); |
70 | extern int block_write(int, unsigned long, void *); |
54 | 71 | ||
55 | extern void node_add_mp(int, unsigned long); |
72 | extern void node_add_mp(int, unsigned long); |
56 | extern void node_del_mp(int, unsigned long); |
73 | extern void node_del_mp(int, unsigned long); |
57 | extern bool node_is_mp(int, unsigned long); |
74 | extern bool node_is_mp(int, unsigned long); |
- | 75 | ||
- | 76 | extern void libfs_lookup(libfs_ops_t *, int, ipc_callid_t, ipc_call_t *); |
|
- | 77 | ||
58 | #endif |
78 | #endif |
59 | 79 | ||
60 | /** @} |
80 | /** @} |
61 | */ |
81 | */ |
62 | 82 |