Skip to content

Commit

Permalink
Added struct typedefs that you can predeclare without including physfs.h
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 2, 2008
1 parent 2f23846 commit 2651eb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.txt
Expand Up @@ -2,7 +2,8 @@
* CHANGELOG.
*/

11022008 - iPhone support (thanks, Christian!)
11022008 - iPhone support (thanks, Christian!). Added struct typedefs that
are friendlier to predeclaring.
04032008 - Fixed PHYSFS_openAppend() to work as documented on Unix.
03122008 - Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
03102008 - Changed some text files from ISO-8859-1 to UTF-8. Replaced all the
Expand Down
8 changes: 4 additions & 4 deletions physfs.h
Expand Up @@ -334,7 +334,7 @@ PHYSFS_COMPILE_TIME_ASSERT(sint64, sizeof(PHYSFS_sint64) == 8);
* \sa PHYSFS_setBuffer
* \sa PHYSFS_flush
*/
typedef struct
typedef struct PHYSFS_File
{
void *opaque; /**< That's all you get. Don't touch. */
} PHYSFS_File;
Expand Down Expand Up @@ -369,7 +369,7 @@ typedef struct
*
* \sa PHYSFS_supportedArchiveTypes
*/
typedef struct
typedef struct PHYSFS_ArchiveInfo
{
const char *extension; /**< Archive file extension: "ZIP", for example. */
const char *description; /**< Human-readable archive description. */
Expand All @@ -391,7 +391,7 @@ typedef struct
* \sa PHYSFS_VERSION
* \sa PHYSFS_getLinkedVersion
*/
typedef struct
typedef struct PHYSFS_Version
{
PHYSFS_uint8 major; /**< major revision */
PHYSFS_uint8 minor; /**< minor revision */
Expand Down Expand Up @@ -1974,7 +1974,7 @@ __EXPORT__ int PHYSFS_symbolicLinksPermitted(void);
*
* \sa PHYSFS_setAllocator
*/
typedef struct
typedef struct PHYSFS_Allocator
{
int (*Init)(void); /**< Initialize. Can be NULL. Zero on failure. */
void (*Deinit)(void); /**< Deinitialize your allocator. Can be NULL. */
Expand Down

0 comments on commit 2651eb2

Please sign in to comment.