physfs-swig.i 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* Metadata to generate the scripting language bindings. Please ignore. */
  2. %module physfs
  3. %{
  4. #include "physfs.h"
  5. %}
  6. /* I _think_ this is safe for now. */
  7. %warnfilter(451) PHYSFS_ArchiveInfo;
  8. %ignore _INCLUDE_PHYSFS_H_; /* ignore the include-once blocker. */
  9. %ignore PHYSFS_DECL; /* ignore the export define. */
  10. %ignore PHYSFS_CALL; /* ignore the calling conventions define. */
  11. %ignore PHYSFS_DEPRECATED; /* ignore the deprecation define. */
  12. %ignore PHYSFS_file; /* legacy type define. */
  13. /* Some bindings put everything in a namespace, so we don't need PHYSFS_ */
  14. #if defined(SWIGPERL) || defined(SWIGRUBY)
  15. %rename(File) PHYSFS_File;
  16. %rename(Version) PHYSFS_Version;
  17. %rename(ArchiveInfo) PHYSFS_ArchiveInfo;
  18. %rename(getLinkedVersion) PHYSFS_getLinkedVersion;
  19. %rename(init) PHYSFS_init;
  20. %rename(deinit) PHYSFS_deinit;
  21. %rename(supportedArchiveTypes) PHYSFS_supportedArchiveTypes;
  22. %rename(freeList) PHYSFS_freeList;
  23. %rename(getLastError) PHYSFS_getLastError;
  24. %rename(getDirSeparator) PHYSFS_getDirSeparator;
  25. %rename(permitSymbolicLinks) PHYSFS_permitSymbolicLinks;
  26. %rename(getCdRomDirs) PHYSFS_getCdRomDirs;
  27. %rename(getBaseDir) PHYSFS_getBaseDir;
  28. %rename(getUserDir) PHYSFS_getUserDir;
  29. %rename(getWriteDir) PHYSFS_getWriteDir;
  30. %rename(setWriteDir) PHYSFS_setWriteDir;
  31. %rename(addToSearchPath) PHYSFS_addToSearchPath;
  32. %rename(removeFromSearchPath) PHYSFS_removeFromSearchPath;
  33. %rename(getSearchPath) PHYSFS_getSearchPath;
  34. %rename(setSaneConfig) PHYSFS_setSaneConfig;
  35. %rename(mkdir) PHYSFS_mkdir;
  36. %rename(delete) PHYSFS_delete;
  37. %rename(getRealDir) PHYSFS_getRealDir;
  38. %rename(enumerateFiles) PHYSFS_enumerateFiles;
  39. %rename(exists) PHYSFS_exists;
  40. %rename(isDirectory) PHYSFS_isDirectory;
  41. %rename(isSymbolicLink) PHYSFS_isSymbolicLink;
  42. %rename(getLastModTime) PHYSFS_getLastModTime;
  43. %rename(openWrite) PHYSFS_openWrite;
  44. %rename(openAppend) PHYSFS_openAppend;
  45. %rename(openRead) PHYSFS_openRead;
  46. %rename(close) PHYSFS_close;
  47. %rename(read) PHYSFS_read;
  48. %rename(write) PHYSFS_write;
  49. %rename(eof) PHYSFS_eof;
  50. %rename(tell) PHYSFS_tell;
  51. %rename(seek) PHYSFS_seek;
  52. %rename(fileLength) PHYSFS_fileLength;
  53. %rename(setBuffer) PHYSFS_setBuffer;
  54. %rename(flush) PHYSFS_flush;
  55. %rename(readSLE16) PHYSFS_readSLE16;
  56. %rename(readULE16) PHYSFS_readULE16;
  57. %rename(readSBE16) PHYSFS_readSBE16;
  58. %rename(readUBE16) PHYSFS_readUBE16;
  59. %rename(readSLE32) PHYSFS_readSLE32;
  60. %rename(readULE32) PHYSFS_readULE32;
  61. %rename(readSBE32) PHYSFS_readSBE32;
  62. %rename(readUBE32) PHYSFS_readUBE32;
  63. %rename(readSLE64) PHYSFS_readSLE64;
  64. %rename(readULE64) PHYSFS_readULE64;
  65. %rename(readSBE64) PHYSFS_readSBE64;
  66. %rename(readUBE64) PHYSFS_readUBE64;
  67. %rename(writeSLE16) PHYSFS_writeSLE16;
  68. %rename(writeULE16) PHYSFS_writeULE16;
  69. %rename(writeSBE16) PHYSFS_writeSBE16;
  70. %rename(writeUBE16) PHYSFS_writeUBE16;
  71. %rename(writeSLE32) PHYSFS_writeSLE32;
  72. %rename(writeULE32) PHYSFS_writeULE32;
  73. %rename(writeSBE32) PHYSFS_writeSBE32;
  74. %rename(writeUBE32) PHYSFS_writeUBE32;
  75. %rename(writeSLE64) PHYSFS_writeSLE64;
  76. %rename(writeULE64) PHYSFS_writeULE64;
  77. %rename(writeSBE64) PHYSFS_writeSBE64;
  78. %rename(writeUBE64) PHYSFS_writeUBE64;
  79. %rename(isInit) PHYSFS_isInit;
  80. %rename(symbolicLinksPermitted) PHYSFS_symbolicLinksPermitted;
  81. %rename(mount) PHYSFS_mount;
  82. %rename(getMountPoint) PHYSFS_getMountPoint;
  83. %rename(Stat) PHYSFS_Stat; /* !!! FIXME: case insensitive script languages? */
  84. %rename(stat) PHYSFS_stat;
  85. %rename(readBytes) PHYSFS_readBytes;
  86. %rename(writeBytes) PHYSFS_writeBytes;
  87. %rename(unmount) PHYSFS_unmount;
  88. %rename(mountMemory) PHYSFS_mountMemory;
  89. %rename(mountHandle) PHYSFS_mountHandle;
  90. %rename(getPrefDir) PHYSFS_getPrefDir;
  91. #endif
  92. %include "../src/physfs.h"