Function signature for callbacks that free a pointer.
Defined in <physfs.h>
typedef void (PHYSFS_CALL *PHYSFS_FreeCallback)(void *ptr);| ptr | The pointer to free. |
These are used to free/delete/deallocate a pointer in an abstract way.
Prior to PhysicsFS 3.3.0, PHYSFS_mountMemory() had a function pointer declared inline in the function's signature. This just moves that declaration to its own typedef, for clarity and documentation purposes, but programs use the API exactly the same way.
This typedef is available since PhysicsFS 3.3.0.