SWIG bindings update.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 30 Aug 2010 03:09:00 -0400
changeset 1124 6ef3d04af1c4
parent 1123 6fdff9f9758d
child 1125 bcff76dbd9fd
SWIG bindings update.
extras/physfs-swig.i
src/physfs.h
--- a/extras/physfs-swig.i	Mon Aug 30 03:02:32 2010 -0400
+++ b/extras/physfs-swig.i	Mon Aug 30 03:09:00 2010 -0400
@@ -89,6 +89,8 @@
 %rename(readBytes) PHYSFS_readBytes;
 %rename(writeBytes) PHYSFS_writeBytes;
 %rename(unmount) PHYSFS_unmount;
+%rename(mountMemory) PHYSFS_mountMemory;
+%rename(mountHandle) PHYSFS_mountHandle;
 #endif
 
 %include "../src/physfs.h"
--- a/src/physfs.h	Mon Aug 30 03:02:32 2010 -0400
+++ b/src/physfs.h	Mon Aug 30 03:09:00 2010 -0400
@@ -2723,6 +2723,8 @@
                                             PHYSFS_uint64 len);
 
 
+#ifndef SWIG  /* not available from scripting languages. */
+
 /**
  * \struct PHYSFS_Io
  * \brief An abstract i/o interface.
@@ -2942,6 +2944,7 @@
 PHYSFS_DECL int PHYSFS_mountIo(PHYSFS_Io *io, const char *fname,
                                const char *mountPoint, int appendToPath);
 
+#endif  /* SWIG */
 
 /**
  * \fn int PHYSFS_mountMemory(const void *ptr, PHYSFS_uint64 len, void (*del)(void *), const char *fname, const char *mountPoint, int appendToPath)