Changeset 595edf5 in mainline for uspace/lib/libfs/libfs.h
- Timestamp:
- 2009-06-03T19:28:15Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36b8100a
- Parents:
- d00ae4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.h
rd00ae4c r595edf5 27 27 */ 28 28 29 /** @addtogroup libfs 29 /** @addtogroup libfs 30 30 * @{ 31 */ 31 */ 32 32 /** 33 33 * @file … … 35 35 36 36 #ifndef LIBFS_LIBFS_H_ 37 #define LIBFS_LIBFS_H_37 #define LIBFS_LIBFS_H_ 38 38 39 #include "../../srv/vfs/vfs.h"39 #include <ipc/vfs.h> 40 40 #include <stdint.h> 41 41 #include <ipc/ipc.h> 42 42 #include <async.h> 43 #include <devmap.h> 43 44 44 45 typedef struct { … … 50 51 51 52 typedef struct { 52 mp_data_t mp_data; 53 void *data; 53 mp_data_t mp_data; /**< Mount point info. */ 54 void *data; /**< Data of the file system implementation. */ 54 55 } fs_node_t; 55 56 … … 67 68 bool (* has_children)(fs_node_t *); 68 69 fs_node_t *(* root_get)(dev_handle_t); 69 char (* plb_get_char)(unsigned pos); 70 char (* plb_get_char)(unsigned pos); 70 71 bool (* is_directory)(fs_node_t *); 71 72 bool (* is_file)(fs_node_t *); … … 73 74 74 75 typedef struct { 75 int fs_handle; 76 ipcarg_t vfs_phonehash; 77 uint8_t *plb_ro; 76 int fs_handle; /**< File system handle. */ 77 ipcarg_t vfs_phonehash; /**< Initial VFS phonehash. */ 78 uint8_t *plb_ro; /**< Read-only PLB view. */ 78 79 } fs_reg_t; 79 80 … … 84 85 extern void libfs_mount(libfs_ops_t *, fs_handle_t, ipc_callid_t, ipc_call_t *); 85 86 extern void libfs_lookup(libfs_ops_t *, fs_handle_t, ipc_callid_t, ipc_call_t *); 87 extern void libfs_open_node(libfs_ops_t *, fs_handle_t, ipc_callid_t, 88 ipc_call_t *); 86 89 87 90 #endif … … 89 92 /** @} 90 93 */ 91
Note:
See TracChangeset
for help on using the changeset viewer.