summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include/pj/pool.h')
-rw-r--r--pjlib/include/pj/pool.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/pjlib/include/pj/pool.h b/pjlib/include/pj/pool.h
index 885b275e..385392a1 100644
--- a/pjlib/include/pj/pool.h
+++ b/pjlib/include/pj/pool.h
@@ -16,6 +16,17 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include <pj/list.h>
+
+/* See if we use pool's alternate API.
+ * The alternate API is used e.g. to implement pool debugging.
+ */
+#if PJ_HAS_POOL_ALT_API
+# include <pj/pool_alt.h>
+#endif
+
+
#ifndef __PJ_POOL_H__
#define __PJ_POOL_H__
@@ -24,8 +35,6 @@
* @brief Memory Pool.
*/
-#include <pj/list.h>
-
PJ_BEGIN_DECL
/**
@@ -474,6 +483,17 @@ PJ_DECL(void) pj_pool_destroy_int( pj_pool_t *pool );
/**
+ * Dump pool factory state.
+ * @param pf The pool factory.
+ * @param detail Detail state required.
+ */
+PJ_INLINE(void) pj_pool_factory_dump( pj_pool_factory *pf,
+ pj_bool_t detail )
+{
+ (*pf->dump_status)(pf, detail);
+}
+
+/**
* @} // PJ_POOL_FACTORY
*/