summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/list.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-02-19 01:28:21 +0000
committerBenny Prijono <bennylp@teluu.com>2006-02-19 01:28:21 +0000
commitc4f0ced120a0d777cac4948f83408aa4d6262b28 (patch)
tree33cb2c16b25e2c77ed919c159e6dca2b47127768 /pjlib/include/pj/list.h
parent7bc58324b88728bc502308c9cb385a12c0ba432e (diff)
Added pj_list_size()
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@192 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/list.h')
-rw-r--r--pjlib/include/pj/list.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pjlib/include/pj/list.h b/pjlib/include/pj/list.h
index 4f2e5145..24328dec 100644
--- a/pjlib/include/pj/list.h
+++ b/pjlib/include/pj/list.h
@@ -250,6 +250,16 @@ PJ_IDECL(pj_list_type*) pj_list_search(pj_list_type *list, void *value,
/**
+ * Traverse the list to get the number of elements in the list.
+ *
+ * @param list The list head.
+ *
+ * @return Number of elements.
+ */
+PJ_IDECL(pj_size_t) pj_list_size(pj_list_type *list);
+
+
+/**
* @}
*/