From 2219123cc564ebf5a268dd7ae3e77ef43dac22e3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 30 Aug 2010 03:09:00 -0400 Subject: [PATCH] SWIG bindings update. --- extras/physfs-swig.i | 2 ++ src/physfs.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/extras/physfs-swig.i b/extras/physfs-swig.i index f6b57638..faa69f87 100644 --- a/extras/physfs-swig.i +++ b/extras/physfs-swig.i @@ -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" diff --git a/src/physfs.h b/src/physfs.h index 6804daf5..3380376c 100644 --- a/src/physfs.h +++ b/src/physfs.h @@ -2723,6 +2723,8 @@ PHYSFS_DECL PHYSFS_sint64 PHYSFS_writeBytes(PHYSFS_File *handle, PHYSFS_uint64 len); +#ifndef SWIG /* not available from scripting languages. */ + /** * \struct PHYSFS_Io * \brief An abstract i/o interface. @@ -2942,6 +2944,7 @@ typedef struct PHYSFS_Io 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)