#include <stdint.h>\r
#include <stdbool.h>\r
\r
-/**@brief Get hash version used in directory index.\r
- * @param root_info Pointer to root info structure of index\r
- * @return Hash algorithm version\r
- */\r
-uint8_t ext4_dir_dx_root_info_get_hash_version(\r
- struct ext4_directory_dx_root_info *root_info);\r
-\r
-/**@brief Set hash version, that will be used in directory index.\r
- * @param root_info Pointer to root info structure of index\r
- * @param v Hash algorithm version\r
- */\r
-void ext4_dir_dx_root_info_set_hash_version(\r
- struct ext4_directory_dx_root_info *root_info, uint8_t v);\r
-\r
-/**@brief Get length of root_info structure in bytes.\r
- * @param root_info Pointer to root info structure of index\r
- * @return Length of the structure\r
- */\r
-uint8_t ext4_dir_dx_root_info_get_info_length(\r
- struct ext4_directory_dx_root_info *root_info);\r
-\r
-/**@brief Set length of root_info structure in bytes.\r
- * @param root_info Pointer to root info structure of index\r
- * @param info_length Length of the structure\r
- */\r
-void ext4_dir_dx_root_info_set_info_length(\r
- struct ext4_directory_dx_root_info *root_info, uint8_t len);\r
-\r
-/**@brief Get number of indirect levels of HTree.\r
- * @param root_info Pointer to root info structure of index\r
- * @return Height of HTree (actually only 0 or 1)\r
- */\r
-uint8_t ext4_dir_dx_root_info_get_indirect_levels(\r
- struct ext4_directory_dx_root_info *root_info);\r
-\r
-/**@brief Set number of indirect levels of HTree.\r
- * @param root_info Pointer to root info structure of index\r
- * @param lvl Height of HTree (actually only 0 or 1)\r
- */\r
-void ext4_dir_dx_root_info_set_indirect_levels(\r
- struct ext4_directory_dx_root_info *root_info, uint8_t lvl);\r
-\r
-/**@brief Get maximum number of index node entries.\r
- * @param climit Pointer to counlimit structure\r
- * @return Maximum of entries in node\r
- */\r
-uint16_t ext4_dir_dx_countlimit_get_limit(\r
- struct ext4_directory_dx_countlimit *climit);\r
-\r
-/**@brief Set maximum number of index node entries.\r
- * @param climit Pointer to counlimit structure\r
- * @param limit Maximum of entries in node\r
- */\r
-void ext4_dir_dx_countlimit_set_limit(\r
- struct ext4_directory_dx_countlimit *climit, uint16_t limit);\r
-\r
-/**@brief Get current number of index node entries.\r
- * @param climit Pointer to counlimit structure\r
- * @return Number of entries in node\r
- */\r
-uint16_t ext4_dir_dx_countlimit_get_count(\r
- struct ext4_directory_dx_countlimit *climit);\r
-\r
-/**@brief Set current number of index node entries.\r
- * @param climit Pointer to counlimit structure\r
- * @param count Number of entries in node\r
- */\r
-void ext4_dir_dx_countlimit_set_count(\r
- struct ext4_directory_dx_countlimit *climit, uint16_t count);\r
-\r
-/**@brief Get hash value of index entry.\r
- * @param entry Pointer to index entry\r
- * @return Hash value\r
- */\r
-uint32_t ext4_dir_dx_entry_get_hash(\r
- struct ext4_directory_dx_entry *entry);\r
-\r
-/**@brief Set hash value of index entry.\r
- * @param entry Pointer to index entry\r
- * @param hash Hash value\r
- */\r
-void ext4_dir_dx_entry_set_hash(\r
- struct ext4_directory_dx_entry *entry, uint32_t hash);\r
-\r
-/**@brief Get block address where child node is located.\r
- * @param entry Pointer to index entry\r
- * @return Block address of child node\r
- */\r
-uint32_t ext4_dir_dx_entry_get_block(\r
- struct ext4_directory_dx_entry *entry);\r
-\r
-/**@brief Set block address where child node is located.\r
- * @param entry Pointer to index entry\r
- * @param block Block address of child node\r
- */\r
-void ext4_dir_dx_entry_set_block(\r
- struct ext4_directory_dx_entry *entry, uint32_t block);\r
-\r
/**@brief Initialize index structure of new directory.\r
* @param dir Pointer to directory i-node\r
* @return Error code\r