summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/pool.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-03-30 15:56:01 +0000
committerBenny Prijono <bennylp@teluu.com>2006-03-30 15:56:01 +0000
commit3cf609b42e573adf8e7183070176a450a7b4959e (patch)
tree3a34159d7b023de27b99675520ab8f82e4245027 /pjlib/include/pj/pool.h
parente985f59aabf893535e0d12c5867e44d69ccb83fe (diff)
Added ability to have custom pool backend (needed for pool debugging facility)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@364 74dad513-b988-da41-8d7b-12977e46ad98
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
*/