physfs.h
changeset 876 0d8e41a5c831
parent 872 65d122daaebb
child 877 99c2fd8e689d
--- a/physfs.h	Sun Apr 01 03:04:20 2007 +0000
+++ b/physfs.h	Sun Apr 01 21:24:19 2007 +0000
@@ -478,6 +478,7 @@
  *          gleaned from PHYSFS_getLastError().
  *
  * \sa PHYSFS_deinit
+ * \sa PHYSFS_isInit
  */
 __EXPORT__ int PHYSFS_init(const char *argv0);
 
@@ -505,6 +506,7 @@
  *          undefined, and probably badly screwed up.
  *
  * \sa PHYSFS_init
+ * \sa PHYSFS_isInit
  */
 __EXPORT__ int PHYSFS_deinit(void);
 
@@ -1912,6 +1914,23 @@
 /* Everything above this line is part of the PhysicsFS 1.0 API. */
 
 /**
+ * \fn int PHYSFS_isInit(void)
+ * \brief Determine if the PhysicsFS library is initialized.
+ *
+ * Once PHYSFS_init() returns successfully, this will return non-zero.
+ *  Before a successful PHYSFS_init() and after PHYSFS_deinit() returns
+ *  successfully, this will return zero. This function is safe to call at
+ *  any time.
+ *
+ *  \return non-zero if library is initialized, zero if library is not.
+ *
+ * \sa PHYSFS_init
+ * \sa PHYSFS_deinit
+ */
+__EXPORT__ int PHYSFS_isInit(void);
+
+
+/**
  * \struct PHYSFS_Allocator
  * \brief PhysicsFS allocation function pointers.
  *