summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/errno.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-12-01 11:14:37 +0000
committerBenny Prijono <bennylp@teluu.com>2006-12-01 11:14:37 +0000
commitb9032ff0ae71378939fda1bacde4ee89a685f6d1 (patch)
treea0e337be547e0d1b5760c2a226535f9e6f1f550c /pjlib/src/pj/errno.c
parent634423cd1e3f12d6cc70c8e6564d40e986eb0312 (diff)
Fixed ticket #29: calling pjsua_init() to reinitialize the whole libraries after pjsua_destroy() is called
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@839 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/errno.c')
-rw-r--r--pjlib/src/pj/errno.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pjlib/src/pj/errno.c b/pjlib/src/pj/errno.c
index 1d7767f4..cbbe0684 100644
--- a/pjlib/src/pj/errno.c
+++ b/pjlib/src/pj/errno.c
@@ -133,6 +133,14 @@ PJ_DECL(pj_status_t) pj_register_strerror(pj_status_t start,
return PJ_SUCCESS;
}
+/* Internal PJLIB function called by pj_shutdown() to clear error handlers */
+void pj_errno_clear_handlers(void)
+{
+ err_msg_hnd_cnt = 0;
+ pj_bzero(err_msg_hnd, sizeof(err_msg_hnd));
+}
+
+
/*
* pj_strerror()
*/