summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-07-13 12:24:55 +0000
committerBenny Prijono <bennylp@teluu.com>2008-07-13 12:24:55 +0000
commit003ffd64e31edf3dc3e087e51a6ce33228563386 (patch)
tree868deffeddad19017f096038f2e616a3d4d762f8 /pjsip/include/pjsua-lib
parent5eb9f56603532619c4719626f580c4b9cdfd3e10 (diff)
Ticket #518: some fixes for growing memory usage in PJSUA-LIB, by using temporary pools for temporary variables and by having separate pool for each account and buddy
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2130 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r--pjsip/include/pjsua-lib/pjsua_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h
index 8d5a7b9d..3660540f 100644
--- a/pjsip/include/pjsua-lib/pjsua_internal.h
+++ b/pjsip/include/pjsua-lib/pjsua_internal.h
@@ -98,6 +98,7 @@ typedef struct pjsua_srv_pres
*/
typedef struct pjsua_acc
{
+ pj_pool_t *pool; /**< Pool for this account. */
pjsua_acc_config cfg; /**< Account configuration. */
pj_bool_t valid; /**< Is this account valid? */
@@ -155,6 +156,7 @@ typedef struct pjsua_transport_data
*/
typedef struct pjsua_buddy
{
+ pj_pool_t *pool; /**< Pool for this buddy. */
unsigned index; /**< Buddy index. */
pj_str_t uri; /**< Buddy URI. */
pj_str_t contact; /**< Contact learned from subscrp. */