diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-08-05 10:58:02 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-08-05 10:58:02 +0000 |
commit | 1f6819c37e9542a7995bc60415c052ba9c7e0c28 (patch) | |
tree | c96ad796f03a363813b64af29ee0d9091e139e14 /pjlib/include | |
parent | 78b3a41d1e054c7cd2f29ff66b3aef258ab87010 (diff) |
Ticket #931: Logging function may infinitely recursively calls itself on Windows Mobile (thanks Emil Sturniolo for the report)
- Added feature to temporarily suspend the logging facility while we're in the pj_log() function. The suspension will be thread specific if the platform supports it.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2853 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include')
-rw-r--r-- | pjlib/include/pj/log.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pjlib/include/pj/log.h b/pjlib/include/pj/log.h index 4b2083c2..b7a258f7 100644 --- a/pjlib/include/pj/log.h +++ b/pjlib/include/pj/log.h @@ -220,6 +220,10 @@ PJ_DECL(void) pj_log_set_color(int level, pj_color_t color); */ PJ_DECL(pj_color_t) pj_log_get_color(int level); +/** + * Internal function to be called by pj_init() + */ +pj_status_t pj_log_init(void); #else /* #if PJ_LOG_MAX_LEVEL >= 1 */ @@ -288,6 +292,11 @@ PJ_DECL(pj_color_t) pj_log_get_color(int level); # define pj_log_get_color(level) 0 +/** + * Internal. + */ +# define pj_log_init() PJ_SUCCESS + #endif /* #if PJ_LOG_MAX_LEVEL >= 1 */ /** |