Guest User

Untitled

a guest
Feb 20th, 2018
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. #ifndef FOXFS_H
  2. #define FOXFS_H
  3.  
  4. #if defined(_MSC_VER)
  5. #define FOXFS_MSVC
  6. #else
  7. #define FOXFS_GNUC
  8. #endif
  9.  
  10. #if defined(FOXFS_DYNAMIC)
  11. #if defined(FOXFS_BUILDING)
  12. #if defined(FOXFS_MSVC)
  13. #define FOXFS_EXPORT __declspec(dllexport)
  14. #else
  15. #define FOXFS_EXPORT
  16. #endif
  17. #else
  18. #if defined(FOXFS_MSVC)
  19. #define FOXFS_EXPORT __declspec(dllimport)
  20. #else
  21. #define FOXFS_EXPORT
  22. #endif
  23. #endif
  24. #else
  25. #define FOXFS_EXPORT
  26. #endif
  27.  
  28. #if defined(FOXFS_MSVC)
  29. #define FOXFS_API __fastcall
  30. #else
  31. #define FOXFS_API __attribute__((fastcall))
  32. #endif
  33.  
  34. typedef void* PFoxFS;
  35.  
  36. #if defined(__cplusplus)
  37. extern "C"
  38. {
  39. #endif
  40.  
  41. PFoxFS FOXFS_EXPORT FOXFS_API FoxFS_Create();
  42. void FOXFS_EXPORT FOXFS_API FoxFS_Destroy(PFoxFS manager);
  43.  
  44. int FOXFS_EXPORT FOXFS_API FoxFS_SetKeyServerA(PFoxFS manager, const char* hostname, unsigned short port);
  45. int FOXFS_EXPORT FOXFS_API FoxFS_SetKeyServerW(PFoxFS manager, const wchar_t* hostname, unsigned short port);
  46. int FOXFS_EXPORT FOXFS_API FoxFS_LoadA(PFoxFS manager, const char* filename);
  47. int FOXFS_EXPORT FOXFS_API FoxFS_LoadW(PFoxFS manager, const wchar_t* filename);
  48. int FOXFS_EXPORT FOXFS_API FoxFS_UnloadA(PFoxFS manager, const char* filename);
  49. int FOXFS_EXPORT FOXFS_API FoxFS_UnloadW(PFoxFS manager, const wchar_t* filename);
  50.  
  51. unsigned int FOXFS_EXPORT FOXFS_API FoxFS_SizeA(PFoxFS manager, const char* filename);
  52. unsigned int FOXFS_EXPORT FOXFS_API FoxFS_SizeW(PFoxFS manager, const wchar_t* filename);
  53. int FOXFS_EXPORT FOXFS_API FoxFS_ExistsA(PFoxFS manager, const char* filename);
  54. int FOXFS_EXPORT FOXFS_API FoxFS_ExistsW(PFoxFS manager, const wchar_t* filename);
  55. int FOXFS_EXPORT FOXFS_API FoxFS_GetA(PFoxFS manager, const char* filename, void* buffer, unsigned int maxsize, unsigned int* outsize);
  56. int FOXFS_EXPORT FOXFS_API FoxFS_GetW(PFoxFS manager, const wchar_t* filename, void* buffer, unsigned int maxsize, unsigned int* outsize);
  57.  
  58. #if defined(__cplusplus)
  59. }
  60. #endif
  61.  
  62. #endif
Advertisement
Add Comment
Please, Sign In to add comment