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: https://svn.pjsip.org/repos/pjproject/trunk@2853 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjlib/include/pj/log.h b/pjlib/include/pj/log.h
index 4b2083c..b7a258f 100644
--- a/pjlib/include/pj/log.h
+++ b/pjlib/include/pj/log.h
@@ -220,6 +220,10 @@
  */
 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 @@
 #  define pj_log_get_color(level) 0
 
 
+/**
+ * Internal.
+ */
+#   define pj_log_init()	PJ_SUCCESS
+
 #endif	/* #if PJ_LOG_MAX_LEVEL >= 1 */
 
 /**