path.h 625 B

123456789101112131415161718192021222324252627
  1. #ifndef _PATH_H_
  2. #define _PATH_H_
  3. #ifndef _HAVE_DIRLIST_TYPE
  4. #define _HAVE_DIRLIST_TYPE
  5. typedef struct dirlist_s {
  6. struct dirlist_s *prev;
  7. struct dirlist_s *next;
  8. char* name;
  9. int dir;
  10. } dirlist_t;
  11. #endif
  12. /* defined in path.c */
  13. int path_init(void);
  14. void path_exit(void);
  15. int path_custom_setter(char* p);
  16. int path_screenshot_setter(char* p);
  17. int path_world_setter(char* p);
  18. char* path_get(char* type, char* file, int must_exist, char* buff, int size);
  19. int path_exists(char* path);
  20. int path_create(char* type, char* file);
  21. int path_remove(char* type, char* path);
  22. dirlist_t *path_dirlist(char* type, char* path);
  23. #endif