Changeset 4728 for pjproject/trunk/pjnath/src/pjnath-test/test.c
- Timestamp:
- Feb 4, 2014 10:13:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath-test/test.c
r4537 r4728 1 1 /* $Id$ */ 2 /* 2 /* 3 3 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 4 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> … … 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 #include "test.h" … … 109 109 110 110 st->timer_cnt = (unsigned)pj_timer_heap_count(cfg->timer_heap); 111 111 112 112 cp = (pj_caching_pool*)cfg->pf; 113 113 st->pool_used_cnt = (unsigned)cp->used_count; 114 114 } 115 115 116 int check_pjlib_state(pj_stun_config *cfg, 116 int check_pjlib_state(pj_stun_config *cfg, 117 117 const struct pjlib_state *initial_st) 118 118 { … … 154 154 pj_pool_factory *mem; 155 155 156 int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | 156 int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | 157 157 PJ_LOG_HAS_MICRO_SEC; 158 158 … … 179 179 pj_log_set_level(3); 180 180 pj_log_set_decor(param_log_decor); 181 PJ_UNUSED_ARG(test_log_func); 181 182 #elif 1 182 183 log_file = fopen("pjnath-test.log", "wt"); … … 191 192 return rc; 192 193 } 193 194 194 195 pj_dump_config(); 195 196 pj_caching_pool_init( &caching_pool, &pj_pool_factory_default_policy, 0 ); … … 234 235 PJ_CATCH_ANY { 235 236 int id = PJ_GET_EXCEPTION(); 236 PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)", 237 PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)", 237 238 id, pj_exception_id_name(id))); 238 239 }
Note: See TracChangeset
for help on using the changeset viewer.