1
0

dfs.h 860 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * File : dfs.h
  3. * This file is part of Device File System in RT-Thread RTOS
  4. * COPYRIGHT (C) 2004-2010, 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. * 2005-02-22 Bernard The first version.
  13. */
  14. #ifndef __DFS_H__
  15. #define __DFS_H__
  16. #include <string.h>
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. char* dfs_normalize_path(const char* directory, const char* filename);
  21. const char* dfs_subdir(const char* directory, const char* filename);
  22. /* FD APIs */
  23. int fd_new(void);
  24. struct dfs_fd* fd_get(int fd);
  25. void fd_put(struct dfs_fd* fd);
  26. int fd_is_open(const char* pathname);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif