dfs_romfs.h 802 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * File : dfs_romfs.h
  3. * This file is part of Device File System in RT-Thread RTOS
  4. * COPYRIGHT (C) 2004-2011, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE.
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. */
  13. #ifndef __DFS_ROMFS_H__
  14. #define __DFS_ROMFS_H__
  15. #include <rtthread.h>
  16. #define ROMFS_DIRENT_FILE 0x00
  17. #define ROMFS_DIRENT_DIR 0x01
  18. struct romfs_dirent
  19. {
  20. rt_uint32_t type; /* dirent type */
  21. const char *name; /* dirent name */
  22. const rt_uint8_t *data; /* file date ptr */
  23. rt_size_t size; /* file size */
  24. };
  25. int dfs_romfs_init(void);
  26. extern const struct romfs_dirent romfs_root;
  27. #endif