Added struct typedefs that you can predeclare without including physfs.h
authorRyan C. Gordon <icculus@icculus.org>
Sun, 02 Nov 2008 15:22:02 -0500
changeset 943 5df593de06e2
parent 942 e7bed87e50ce
child 944 4a814e7fee5d
Added struct typedefs that you can predeclare without including physfs.h
CHANGELOG.txt
physfs.h
--- a/CHANGELOG.txt	Sun Nov 02 15:19:58 2008 -0500
+++ b/CHANGELOG.txt	Sun Nov 02 15:22:02 2008 -0500
@@ -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
--- a/physfs.h	Sun Nov 02 15:19:58 2008 -0500
+++ b/physfs.h	Sun Nov 02 15:22:02 2008 -0500
@@ -334,7 +334,7 @@
  * \sa PHYSFS_setBuffer
  * \sa PHYSFS_flush
  */
-typedef struct
+typedef struct PHYSFS_File
 {
     void *opaque;  /**< That's all you get. Don't touch. */
 } PHYSFS_File;
@@ -369,7 +369,7 @@
  *
  * \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. */
@@ -391,7 +391,7 @@
  * \sa PHYSFS_VERSION
  * \sa PHYSFS_getLinkedVersion
  */
-typedef struct
+typedef struct PHYSFS_Version
 {
     PHYSFS_uint8 major; /**< major revision */
     PHYSFS_uint8 minor; /**< minor revision */
@@ -1974,7 +1974,7 @@
  *
  * \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. */