diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2016-02-01 03:18:15 +0000 |
|---|---|---|
| committer | ngkaho1234 <ngkaho1234@gmail.com> | 2016-02-01 03:18:15 +0000 |
| commit | 8b4a6cedc4a20924ed01da7609e6b158a0f15576 (patch) | |
| tree | a29ee763ed3f92af78752d99f594683307ce642d /include/ext4_dir.h | |
| parent | 252c506239ab570c0f671513a3b17d3a44f86b5c (diff) | |
Relocate other in-memory data structures from ext4_types.h
These include ext4_inode_ref, ext4_dir_iter, ext4_dir_search_result
and ext4_dir_idx_block.
Diffstat (limited to 'include/ext4_dir.h')
| -rw-r--r-- | include/ext4_dir.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ext4_dir.h b/include/ext4_dir.h index 7b06843..d3b1bf5 100644 --- a/include/ext4_dir.h +++ b/include/ext4_dir.h @@ -54,6 +54,19 @@ extern "C" { #include <stdint.h> +struct ext4_dir_iter { + struct ext4_inode_ref *inode_ref; + struct ext4_block curr_blk; + uint64_t curr_off; + struct ext4_dir_en *curr; +}; + +struct ext4_dir_search_result { + struct ext4_block block; + struct ext4_dir_en *dentry; +}; + + /**@brief Get i-node number from directory entry. * @param de Directory entry * @return I-node number |
