/src/dir_inode_to_block.h

http://ext3grep.googlecode.com/ · C Header · 40 lines · 13 code · 5 blank · 22 comment · 0 complexity · 0e0a65acdc7ac53dfdeca6f7c36344b0 MD5 · raw file

  1. // ext3grep -- An ext3 file system investigation and undelete tool
  2. //
  3. //! @file dir_inode_to_block.h Declarations for dir_inode_to_block.cc
  4. //
  5. // Copyright (C) 2008, by
  6. //
  7. // Carlo Wood, Run on IRC <carlo@alinoe.com>
  8. // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt
  9. // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61
  10. //
  11. // This program is free software: you can redistribute it and/or modify
  12. // it under the terms of the GNU General Public License as published by
  13. // the Free Software Foundation, either version 2 of the License, or
  14. // (at your option) any later version.
  15. //
  16. // This program is distributed in the hope that it will be useful,
  17. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. // GNU General Public License for more details.
  20. //
  21. // You should have received a copy of the GNU General Public License
  22. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  23. #ifndef DIR_INIDE_TO_BLOCK_H
  24. #define DIR_INIDE_TO_BLOCK_H
  25. #ifndef USE_PCH
  26. #include <string>
  27. #include <vector>
  28. #endif
  29. #include "blocknr_vector_type.h"
  30. bool does_not_end_on_END(std::string const& cachename);
  31. void init_dir_inode_to_block_cache(void);
  32. int dir_inode_to_block(uint32_t inode);
  33. extern blocknr_vector_type* dir_inode_to_block_cache;
  34. extern std::vector<int> extended_blocks;
  35. #endif // DIR_INIDE_TO_BLOCK_H