physfs_internal.h
changeset 644 1cb5533d369c
parent 641 c6b04c2a0599
child 648 5c993684b8f2
--- a/physfs_internal.h	Thu Sep 23 06:38:51 2004 +0000
+++ b/physfs_internal.h	Thu Sep 23 06:45:36 2004 +0000
@@ -1295,6 +1295,10 @@
 #define BAIL_IF_MACRO_MUTEX(c, e, m, r) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); return r; }
 
 
+/*
+ * Get the current allocator. Not valid before PHYSFS_init is called!
+ */
+PHYSFS_allocator *__PHYSFS_getAllocator(void);
 
 
 /*--------------------------------------------------------------------------*/
@@ -1694,6 +1698,35 @@
  */
 void __PHYSFS_platformReleaseMutex(void *mutex);
 
+/*
+ * Implement malloc. It's safe to just pass through from the C runtime.
+ */
+PHYSFS_memhandle __PHYSFS_platformMalloc(size_t s);
+
+/*
+ * Implement realloc. It's safe to just pass through from the C runtime.
+ */
+PHYSFS_memhandle __PHYSFS_platformRealloc(PHYSFS_memhandle h, size_t s);
+
+/*
+ * Implement free. It's safe to just pass through from the C runtime.
+ */
+void __PHYSFS_platformFree(PHYSFS_memhandle h);
+
+/*
+ * Lock a memhandle. If you are just passing through from the C runtime,
+ *  it is safe to make this a no-op. Otherwise, convert to a real pointer
+ *  in the address space and return it.
+ */
+void *__PHYSFS_platformLock(PHYSFS_memhandle h);
+
+/*
+ * Unlock a memhandle. If you are just passing through from the C runtime,
+ *  it is safe to make this a no-op. Otherwise, you can consider the data in
+ *  the address space safe to move around until the handle is relocked.
+ */
+void __PHYSFS_platformUnlock(PHYSFS_memhandle h);
+
 #ifdef __cplusplus
 }
 #endif