Directory-c-api.h 904 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "Error-c-api.h"
  3. #include <stdint.h>
  4. #if defined(__cplusplus)
  5. #include "os/Directory.h"
  6. typedef il2cpp::os::Directory::FindHandle UnityPalFindHandle;
  7. #else
  8. typedef struct UnityPalFindHandle UnityPalFindHandle;
  9. #endif
  10. #if defined(__cplusplus)
  11. extern "C"
  12. {
  13. #endif
  14. const char* UnityPalDirectoryGetCurrent(int* error);
  15. UnityPalFindHandle* UnityPalDirectoryFindHandleNew(const char* searchPathWithPattern);
  16. void UnityPalDirectoryFindHandleDelete(UnityPalFindHandle* object);
  17. int32_t UnityPalDirectoryCloseOSHandle(UnityPalFindHandle* object);
  18. UnityPalErrorCode UnityPalDirectoryFindFirstFile(UnityPalFindHandle* findHandle, const char* searchPathWithPattern, char** resultFileName, int32_t* resultAttributes);
  19. UnityPalErrorCode UnityPalDirectoryFindNextFile(UnityPalFindHandle* findHandle, char** resultFileName, int32_t* resultAttributes);
  20. #if defined(__cplusplus)
  21. }
  22. #endif