Changeset 839 for pjproject/trunk
- Timestamp:
- Dec 1, 2006 11:14:37 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/errno.h
r745 r839 347 347 PJ_END_DECL 348 348 349 /* Internal */ 350 void pj_errno_clear_handlers(void); 351 349 352 #endif /* __PJ_ERRNO_H__ */ 350 353 -
pjproject/trunk/pjlib/src/pj/config.c
r835 r839 22 22 23 23 static const char *id = "config.c"; 24 const char *PJ_VERSION = "0.5.9 ";24 const char *PJ_VERSION = "0.5.9.1"; 25 25 26 26 PJ_DEF(void) pj_dump_config(void) -
pjproject/trunk/pjlib/src/pj/errno.c
r745 r839 134 134 } 135 135 136 /* Internal PJLIB function called by pj_shutdown() to clear error handlers */ 137 void pj_errno_clear_handlers(void) 138 { 139 err_msg_hnd_cnt = 0; 140 pj_bzero(err_msg_hnd, sizeof(err_msg_hnd)); 141 } 142 143 136 144 /* 137 145 * pj_strerror() -
pjproject/trunk/pjlib/src/pj/except.c
r815 r839 58 58 thread_local_id = -1; 59 59 } 60 61 #if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0 62 { 63 unsigned i; 64 for (i=0; i<PJ_MAX_EXCEPTION_ID; ++i) 65 exception_id_names[i] = NULL; 66 } 67 #else 68 last_exception_id = 1; 69 #endif 60 70 } 61 71 -
pjproject/trunk/pjlib/src/pj/os_core_unix.c
r816 r839 208 208 } 209 209 #endif 210 211 /* Clear static variables */ 212 pj_errno_clear_handlers(); 210 213 } 211 214 -
pjproject/trunk/pjlib/src/pj/os_core_win32.c
r821 r839 219 219 } 220 220 221 /* Clear static variables */ 222 pj_errno_clear_handlers(); 223 221 224 /* Shutdown Winsock */ 222 225 //WSACleanup(); -
pjproject/trunk/pjlib/src/pj/pool_buf.c
r815 r839 39 39 tls = -1; 40 40 } 41 if (is_initialized) 42 is_initialized = 0; 41 43 } 42 44 -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r832 r839 362 362 363 363 /* Run pj_getopt once to see if user specifies config file to read. */ 364 pj_optind = 0; 364 365 while ((c=pj_getopt_long(argc, argv, "", long_options, 365 366 &option_index)) != -1) … … 2846 2847 pj_status_t app_destroy(void) 2847 2848 { 2849 pj_status_t status; 2850 2848 2851 #ifdef STEREO_DEMO 2849 2852 if (app_config.snd) { … … 2858 2861 } 2859 2862 2860 return pjsua_destroy(); 2863 status = pjsua_destroy(); 2864 2865 pj_bzero(&app_config, sizeof(app_config)); 2866 2867 return status; 2861 2868 } 2862 2869 -
pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c
r818 r839 109 109 /* Defined in sip_parser.c */ 110 110 void init_sip_parser(void); 111 void deinit_sip_parser(void); 111 112 112 113 /* Defined in sip_tel_uri.c */ … … 588 589 /* Delete endpoint mutex. */ 589 590 pj_mutex_destroy(endpt->mutex); 591 592 /* Deinit parser */ 593 deinit_sip_parser(); 590 594 591 595 /* Delete module's mutex */ -
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r801 r839 282 282 static pj_status_t init_parser() 283 283 { 284 static int initialized;285 284 pj_status_t status; 286 287 if (initialized)288 return PJ_SUCCESS;289 290 initialized = 1;291 285 292 286 /* … … 473 467 void init_sip_parser(void) 474 468 { 475 if (!parser_is_initialized) { 476 if (!parser_is_initialized) { 477 init_parser(); 478 parser_is_initialized = 1; 479 } 480 } 469 pj_enter_critical_section(); 470 if (++parser_is_initialized == 1) { 471 init_parser(); 472 } 473 pj_leave_critical_section(); 474 } 475 476 void deinit_sip_parser(void) 477 { 478 pj_enter_critical_section(); 479 if (--parser_is_initialized == 0) { 480 /* Clear header handlers */ 481 pj_bzero(handler, sizeof(handler)); 482 handler_count = 0; 483 484 /* Clear URI handlers */ 485 pj_bzero(uri_handler, sizeof(uri_handler)); 486 uri_handler_count = 0; 487 } 488 pj_leave_critical_section(); 481 489 } 482 490 -
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r815 r839 176 176 static pj_status_t tsx_create( pjsip_module *tsx_user, 177 177 pjsip_transaction **p_tsx); 178 static voidtsx_destroy( pjsip_transaction *tsx );178 static pj_status_t tsx_destroy( pjsip_transaction *tsx ); 179 179 static void tsx_resched_retransmission( pjsip_transaction *tsx ); 180 180 static pj_status_t tsx_retransmit( pjsip_transaction *tsx, int resched); … … 645 645 pjsip_transaction *tsx = pj_hash_this(mod_tsx_layer.htable, it); 646 646 pj_hash_iterator_t *next = pj_hash_next(mod_tsx_layer.htable, it); 647 if (tsx) 647 if (tsx) { 648 mod_tsx_layer_unregister_tsx(tsx); 648 649 tsx_destroy(tsx); 650 } 649 651 it = next; 650 652 } … … 921 923 922 924 /* Destroy transaction. */ 923 static voidtsx_destroy( pjsip_transaction *tsx )925 static pj_status_t tsx_destroy( pjsip_transaction *tsx ) 924 926 { 925 927 struct tsx_lock_data *lck; … … 955 957 PJ_LOG(4,(tsx->obj_name, "Will destroy later because transport is " 956 958 "in progress")); 957 return ;959 return PJ_EBUSY; 958 960 } 959 961 … … 972 974 973 975 pjsip_endpt_release_pool(tsx->endpt, tsx->pool); 976 977 return PJ_SUCCESS; 974 978 } 975 979 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r824 r839 712 712 pj_shutdown(); 713 713 714 /* Clear pjsua_var */ 715 pj_bzero(&pjsua_var, sizeof(pjsua_var)); 716 714 717 /* Done. */ 715 718 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.