Changeset 1269
- Timestamp:
- May 12, 2007 3:03:23 PM (17 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/build.symbian/bld.inf
r1253 r1269 1 prj_platforms 2 winscw 3 armv5 4 gcce 5 1 6 prj_mmpfiles 2 7 pjlib.mmp -
pjproject/trunk/build.symbian/pjlib.mmp
r1246 r1269 7 7 8 8 OPTION CW -lang c++ 9 OPTION ARMCC --cpp 10 OPTION GCC -x c++ 9 11 10 12 MACRO PJ_M_I386=1 … … 57 59 SOURCE unicode_symbian.cpp 58 60 59 DOCUMENT os_symbian.h61 //DOCUMENT os_symbian.h 60 62 61 DOCUMENT pj\addr_resolv.h62 DOCUMENT pj\array.h63 DOCUMENT pj\assert.h64 DOCUMENT pj\config.h65 DOCUMENT pj\config_site.h63 //DOCUMENT pj\addr_resolv.h 64 //DOCUMENT pj\array.h 65 //DOCUMENT pj\assert.h 66 //DOCUMENT pj\config.h 67 //DOCUMENT pj\config_site.h 66 68 //DOCUMENT pj\config_site_sample.h 67 DOCUMENT pj\ctype.h68 DOCUMENT pj\errno.h69 DOCUMENT pj\except.h70 DOCUMENT pj\file_access.h71 DOCUMENT pj\file_io.h72 DOCUMENT pj\guid.h73 DOCUMENT pj\hash.h74 DOCUMENT pj\ioqueue.h75 DOCUMENT pj\ip_helper.h76 DOCUMENT pj\list.h77 DOCUMENT pj\lock.h78 DOCUMENT pj\log.h79 DOCUMENT pj\os.h80 DOCUMENT pj\\pool.h81 DOCUMENT pj\\pool_buf.h82 DOCUMENT pj\rand.h83 DOCUMENT pj\rbtree.h84 DOCUMENT pj\sock.h85 DOCUMENT pj\sock_select.h86 DOCUMENT pj\string.h87 DOCUMENT pj\timer.h88 DOCUMENT pj\types.h89 DOCUMENT pj\unicode.h69 //DOCUMENT pj\ctype.h 70 //DOCUMENT pj\errno.h 71 //DOCUMENT pj\except.h 72 //DOCUMENT pj\file_access.h 73 //DOCUMENT pj\file_io.h 74 //DOCUMENT pj\guid.h 75 //DOCUMENT pj\hash.h 76 //DOCUMENT pj\ioqueue.h 77 //DOCUMENT pj\ip_helper.h 78 //DOCUMENT pj\list.h 79 //DOCUMENT pj\lock.h 80 //DOCUMENT pj\log.h 81 //DOCUMENT pj\os.h 82 //DOCUMENT pj\\pool.h 83 //DOCUMENT pj\\pool_buf.h 84 //DOCUMENT pj\rand.h 85 //DOCUMENT pj\rbtree.h 86 //DOCUMENT pj\sock.h 87 //DOCUMENT pj\sock_select.h 88 //DOCUMENT pj\string.h 89 //DOCUMENT pj\timer.h 90 //DOCUMENT pj\types.h 91 //DOCUMENT pj\unicode.h 90 92 91 93 SYSTEMINCLUDE ..\pjlib\include -
pjproject/trunk/build.symbian/pjlib_test.mmp
r1242 r1269 10 10 11 11 OPTION CW -lang c++ 12 OPTION ARMCC --cpp 13 OPTION GCC -x c++ 12 14 13 15 // Test files -
pjproject/trunk/build.symbian/pjlib_util.mmp
r1246 r1269 10 10 11 11 OPTION CW -lang c++ 12 OPTION ARMCC --cpp 13 OPTION GCC -x c++ 12 14 13 15 // -
pjproject/trunk/build.symbian/pjmedia.mmp
r1248 r1269 75 75 SYSTEMINCLUDE \epoc32\include 76 76 SYSTEMINCLUDE \epoc32\include\libc 77 SYSTEMINCLUDE \epoc32\include\mmf\plugin77 //SYSTEMINCLUDE \epoc32\include\mmf\plugin 78 78 79 79 CAPABILITY None -
pjproject/trunk/build.symbian/pjnath.mmp
r1244 r1269 9 9 MACRO PJ_SYMBIAN=1 10 10 11 //OPTION CW -lang c++ 11 OPTION CW -lang c++ 12 OPTION ARMCC --cpp 13 OPTION GCC -x c++ 12 14 13 15 // … … 46 48 SYSTEMINCLUDE \epoc32\include\libc 47 49 48 LIBRARY pjlib.lib49 LIBRARY pjlib_util.lib50 //STATICLIBRARY pjlib.lib 51 //STATICLIBRARY pjlib_util.lib 50 52 CAPABILITY None 51 53 -
pjproject/trunk/build.symbian/pjsdp.mmp
r1242 r1269 7 7 8 8 OPTION CW -lang c++ 9 OPTION ARMCC --cpp 10 OPTION GCC -x c++ 9 11 10 12 MACRO PJ_M_I386=1 -
pjproject/trunk/build.symbian/pjsip.mmp
r1242 r1269 10 10 11 11 OPTION CW -lang c++ 12 OPTION ARMCC --cpp 13 OPTION GCC -x c++ 12 14 13 15 // PJSIP-CORE files -
pjproject/trunk/build.symbian/pjsip_simple.mmp
r1242 r1269 10 10 11 11 OPTION CW -lang c++ 12 OPTION ARMCC --cpp 13 OPTION GCC -x c++ 12 14 13 15 -
pjproject/trunk/build.symbian/pjsip_ua.mmp
r1242 r1269 12 12 13 13 14 // PJSIP- SIMPLEfiles14 // PJSIP-UA files 15 15 16 16 SOURCE sip_inv.c -
pjproject/trunk/build.symbian/pjstun_client.mmp
r1242 r1269 10 10 11 11 OPTION CW -lang c++ 12 OPTION ARMCC --cpp 13 OPTION GCC -x c++ 12 14 13 15 // PJSTUN-CLIENT files -
pjproject/trunk/pjlib/include/pj/compat/cc_armcc.h
r1246 r1269 34 34 #define PJ_CC_VER_3 __ARMCC_PATCHLEVEL__ 35 35 36 #ifdef __cplusplus 37 # define PJ_INLINE_SPECIFIER inline 38 #else 39 # define PJ_INLINE_SPECIFIER static __inline 40 #endif 36 41 37 #define PJ_INLINE_SPECIFIER static // why is not inline accepted?38 42 #define PJ_THREAD_FUNC 39 43 #define PJ_NORETURN -
pjproject/trunk/pjlib/include/pj/compat/os_symbian.h
r1244 r1269 145 145 typedef unsigned int socklen_t; 146 146 147 #ifndef __GCCE__ 147 148 #include <e32def.h> 149 #endif 148 150 149 151 /* -
pjproject/trunk/pjlib/include/pj/errno.h
r1244 r1269 112 112 char *buf, pj_size_t bufsize); 113 113 114 typedef pj_str_t (*pjsip_error_callback)(pj_status_t, char*, pj_size_t); 114 115 /** 115 116 * Register strerror message handler for the specified error space. … … 133 134 PJ_DECL(pj_status_t) pj_register_strerror(pj_status_t start_code, 134 135 pj_status_t err_space, 135 pj_str_t (*f)(pj_status_t,char*, 136 pj_size_t)); 136 pjsip_error_callback f); 137 137 138 138 /** -
pjproject/trunk/pjlib/include/pj/except.h
r1242 r1269 27 27 #include <pj/types.h> 28 28 #include <pj/compat/setjmp.h> 29 #include <pj/log.h> 29 30 30 31 … … 266 267 #define PJ_GET_EXCEPTION() pj_excp_.code_ 267 268 269 #else 270 271 #define PJ_USE_EXCEPTION 272 #define PJ_TRY 273 #define PJ_CATCH_ANY if (0) 274 #define PJ_END 275 #define PJ_THROW(x_id) do { PJ_LOG(1,("PJ_THROW"," error code = %d",x_id)); } while (0) 276 #define PJ_GET_EXCEPTION() 0 277 268 278 #endif /* __cplusplus */ 269 279 -
pjproject/trunk/pjlib/include/pj/types.h
r974 r1269 303 303 PJ_DECL(void) pj_shutdown(void); 304 304 305 typedef void (*pj_exit_callback)(void); 305 306 /** 306 307 * Register cleanup function to be called by PJLIB when pj_shutdown() is … … 311 312 * @return PJ_SUCCESS on success. 312 313 */ 313 PJ_DECL(pj_status_t) pj_atexit( void (*func)(void));314 PJ_DECL(pj_status_t) pj_atexit(pj_exit_callback func); 314 315 315 316 -
pjproject/trunk/pjlib/src/pj/addr_resolv_symbian.cpp
r1235 r1269 36 36 wchar_t name16[PJ_MAX_HOSTNAME]; 37 37 pj_ansi_to_unicode(name->ptr, name->slen, name16, PJ_ARRAY_SIZE(name16)); 38 TPtrC16 data( name16);38 TPtrC16 data((const TUint16*)name16); 39 39 40 40 // Resolve! … … 66 66 67 67 // Convert the official address to ANSI. 68 pj_unicode_to_ansi( nameEntry().iName.Ptr(), nameEntry().iName.Length(),68 pj_unicode_to_ansi((const wchar_t*)nameEntry().iName.Ptr(), nameEntry().iName.Length(), 69 69 resolved_name, sizeof(resolved_name)); 70 70 -
pjproject/trunk/pjlib/src/pj/errno.c
r1235 r1269 104 104 PJ_DECL(pj_status_t) pj_register_strerror(pj_status_t start, 105 105 pj_status_t space, 106 pj_str_t (*f)(pj_status_t,char*, 107 pj_size_t)) 106 pjsip_error_callback f) 108 107 { 109 108 unsigned i; -
pjproject/trunk/pjlib/src/pj/exception_symbian.cpp
r1242 r1269 23 23 #include <pj/errno.h> 24 24 25 static long thread_local_id = -1;26 25 27 26 #if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0 -
pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp
r1248 r1269 302 302 303 303 304 PJ_DEF(pj_status_t) pj_atexit( void (*func)(void))304 PJ_DEF(pj_status_t) pj_atexit(pj_exit_callback func) 305 305 { 306 306 if (atexit_count >= PJ_ARRAY_SIZE(atexit_func)) … … 460 460 PJ_DEF(void) pj_thread_local_free(long index) 461 461 { 462 PJ_ASSERT_ON_FAIL(index >= 0 && index < PJ_ARRAY_SIZE(tls_vars) &&462 PJ_ASSERT_ON_FAIL(index >= 0 && index < (int)PJ_ARRAY_SIZE(tls_vars) && 463 463 tls_vars[index] != 0, return); 464 464 … … 474 474 pj_thread_t *rec = pj_thread_this(); 475 475 476 PJ_ASSERT_RETURN(index >= 0 && index < PJ_ARRAY_SIZE(tls_vars) &&476 PJ_ASSERT_RETURN(index >= 0 && index < (int)PJ_ARRAY_SIZE(tls_vars) && 477 477 tls_vars[index] != 0, PJ_EINVAL); 478 478 … … 488 488 pj_thread_t *rec = pj_thread_this(); 489 489 490 PJ_ASSERT_RETURN(index >= 0 && index < PJ_ARRAY_SIZE(tls_vars) &&490 PJ_ASSERT_RETURN(index >= 0 && index < (int)PJ_ARRAY_SIZE(tls_vars) && 491 491 tls_vars[index] != 0, NULL); 492 492 -
pjproject/trunk/pjlib/src/pj/sock_symbian.cpp
r1248 r1269 272 272 temp_addr.Output(str16); 273 273 274 return pj_unicode_to_ansi( str16.PtrZ(), str16.Length(),274 return pj_unicode_to_ansi((const wchar_t*)str16.PtrZ(), str16.Length(), 275 275 str8, sizeof(str8)); 276 276 } … … 308 308 tempaddr16, sizeof(tempaddr16)); 309 309 310 TBuf<MAXIPLEN> ip_addr( tempaddr16);310 TBuf<MAXIPLEN> ip_addr((const TText*)tempaddr16); 311 311 312 312 TInetAddr addr; … … 419 419 User::WaitForRequest(reqStatus); 420 420 421 hostname.ptr = pj_unicode_to_ansi( tmpName.Ptr(), tmpName.Length(),421 hostname.ptr = pj_unicode_to_ansi((const wchar_t*)tmpName.Ptr(), tmpName.Length(), 422 422 buf, sizeof(buf)); 423 423 hostname.slen = tmpName.Length(); … … 552 552 553 553 PJ_ASSERT_RETURN(sock && addr && namelen && 554 *namelen>= sizeof(pj_sockaddr_in), PJ_EINVAL);554 *namelen>=(int)sizeof(pj_sockaddr_in), PJ_EINVAL); 555 555 556 556 CPjSocket *pjSock = (CPjSocket*)sock; … … 579 579 580 580 PJ_ASSERT_RETURN(sock && addr && namelen && 581 *namelen>= sizeof(pj_sockaddr_in), PJ_EINVAL);581 *namelen>=(int)sizeof(pj_sockaddr_in), PJ_EINVAL); 582 582 583 583 CPjSocket *pjSock = (CPjSocket*)sock; … … 729 729 PJ_ASSERT_RETURN(sock && buf && len && from && fromlen, PJ_EINVAL); 730 730 PJ_ASSERT_RETURN(*len > 0, PJ_EINVAL); 731 PJ_ASSERT_RETURN(*fromlen >= sizeof(pj_sockaddr_in), PJ_EINVAL);731 PJ_ASSERT_RETURN(*fromlen >= (int)sizeof(pj_sockaddr_in), PJ_EINVAL); 732 732 733 733 CPjSocket *pjSock = (CPjSocket*)sock; -
pjproject/trunk/pjlib/src/pjlib-test/main_symbian.cpp
r1235 r1269 52 52 // add your program code here, example code below 53 53 // 54 int rc =test_main();54 test_main(); 55 55 56 56 console->Printf(_L(" [press any key]\n")); -
pjproject/trunk/pjmedia/src/pjmedia/bidirectional.c
r974 r1269 55 55 struct bidir_port *port; 56 56 57 port = pj_pool_zalloc(pool, sizeof(struct bidir_port));57 port = PJ_POOL_ZALLOC_T(pool, struct bidir_port); 58 58 59 59 pjmedia_port_info_init(&port->base.info, &get_port->info.name, SIGNATURE, -
pjproject/trunk/pjmedia/src/pjmedia/echo_common.c
r1266 r1269 18 18 */ 19 19 20 #include <pjmedia/config.h> 20 21 #include <pjmedia/echo.h> 21 22 #include <pj/assert.h> -
pjproject/trunk/pjmedia/src/pjmedia/nullsound.c
r1244 r1269 68 68 PJ_DEF(const pjmedia_snd_dev_info*) pjmedia_snd_get_dev_info(unsigned index) 69 69 { 70 PJ_ASSERT_RETURN(index==0 || index== -1, NULL);70 PJ_ASSERT_RETURN(index==0 || index==(unsigned)-1, NULL); 71 71 return &null_info; 72 72 } -
pjproject/trunk/pjsip-apps/src/samples/sndinfo.c
r974 r1269 257 257 if (argc == 1) { 258 258 enum_devices(); 259 return 0;260 259 } else if (argc == 6) { 261 260 -
pjproject/trunk/pjsip/include/pjsip/sip_transport.h
r1248 r1269 606 606 * 607 607 *****************************************************************************/ 608 608 typedef void (*pjsip_transport_callback)(pjsip_transport *tp, void *token, 609 pj_ssize_t sent_bytes); 609 610 /** 610 611 * This structure represent the "public" interface of a SIP transport. … … 672 673 int addr_len, 673 674 void *token, 674 void (*callback)(pjsip_transport *transport, 675 void *token, 676 pj_ssize_t sent_bytes)); 675 pjsip_transport_callback callback); 677 676 678 677 /** … … 885 884 * 886 885 *****************************************************************************/ 887 886 typedef void (*pjsip_rx_callback)(pjsip_endpoint*, pj_status_t, pjsip_rx_data *); 887 typedef pj_status_t (*pjsip_tx_callback)(pjsip_endpoint*, pjsip_tx_data*); 888 888 /** 889 889 * Create a new transport manager. … … 900 900 PJ_DECL(pj_status_t) pjsip_tpmgr_create( pj_pool_t *pool, 901 901 pjsip_endpoint * endpt, 902 void (*rx_cb)(pjsip_endpoint*, 903 pj_status_t, 904 pjsip_rx_data *), 905 pj_status_t (*tx_cb)(pjsip_endpoint*, 906 pjsip_tx_data*), 902 pjsip_rx_callback rx_cb, 903 pjsip_tx_callback tx_cb, 907 904 pjsip_tpmgr **p_mgr); 908 905 … … 988 985 pjsip_transport **tp); 989 986 990 987 typedef void (*pjsip_tp_send_callback)(void *token, pjsip_tx_data *tdata, 988 pj_ssize_t bytes_sent); 991 989 /** 992 990 * Send a SIP message using the specified transport. … … 997 995 int addr_len, 998 996 void *token, 999 void (*cb)(void *token, 1000 pjsip_tx_data *tdata, 1001 pj_ssize_t bytes_sent)); 997 pjsip_tp_send_callback cb); 1002 998 1003 999 -
pjproject/trunk/pjsip/include/pjsip/sip_util.h
r1127 r1269 259 259 } pjsip_send_state; 260 260 261 typedef void (*pjsip_endpt_callback)(pjsip_send_state*, pj_ssize_t sent, 262 pj_bool_t *cont); 261 263 /** 262 264 * Send outgoing request statelessly The function will take care of which … … 280 282 pjsip_tx_data *tdata, 281 283 void *token, 282 void (*cb)(pjsip_send_state*, 283 pj_ssize_t sent, 284 pj_bool_t *cont)); 284 pjsip_endpt_callback cb); 285 285 286 286 /** … … 358 358 pjsip_tx_data *tdata, 359 359 void *token, 360 void (*cb)(pjsip_send_state*, 361 pj_ssize_t sent, 362 pj_bool_t *cont)); 360 pjsip_endpt_callback cb); 363 361 364 362 /** … … 383 381 pjsip_tx_data *tdata, 384 382 void *token, 385 void (*cb)(pjsip_send_state*, 386 pj_ssize_t sent, 387 pj_bool_t *cont)); 383 pjsip_endpt_callback cb); 388 384 389 385 /** … … 446 442 pjsip_transaction **p_tsx ); 447 443 444 typedef void (*pjsip_endpt_send_callback)(void*, pjsip_event*); 448 445 /** 449 446 * Send outgoing request and initiate UAC transaction for the request. … … 470 467 pj_int32_t timeout, 471 468 void *token, 472 void (*cb)(void*,pjsip_event*));469 pjsip_endpt_send_callback cb); 473 470 474 471 /** -
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r1240 r1269 909 909 parsing_headers = PJ_FALSE; 910 910 911 retry_parse: 911 912 PJ_TRY 912 913 { … … 1055 1056 /* Continue parse next header, if any. */ 1056 1057 if (!pj_scan_is_eof(scanner) && !IS_NEWLINE(*scanner->curptr)) { 1057 goto parse_headers;1058 goto retry_parse; 1058 1059 } 1059 1060 } -
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r1266 r1269 549 549 int addr_len, 550 550 void *token, 551 void (*cb)(void *token, 552 pjsip_tx_data *tdata, 553 pj_ssize_t)) 551 pjsip_tp_send_callback cb) 554 552 { 555 553 pj_status_t status; … … 884 882 PJ_DEF(pj_status_t) pjsip_tpmgr_create( pj_pool_t *pool, 885 883 pjsip_endpoint *endpt, 886 void (*rx_cb)(pjsip_endpoint*, 887 pj_status_t, 888 pjsip_rx_data *), 889 pj_status_t (*tx_cb)(pjsip_endpoint*, 890 pjsip_tx_data*), 884 pjsip_rx_callback rx_cb, 885 pjsip_tx_callback tx_cb, 891 886 pjsip_tpmgr **p_mgr) 892 887 { -
pjproject/trunk/pjsip/src/pjsip/sip_transport_loop.c
r1241 r1269 146 146 int addr_len, 147 147 void *token, 148 void (*cb)(pjsip_transport *transport, 149 void *token, 150 pj_ssize_t sent_bytes)) 148 pjsip_transport_callback cb) 151 149 { 152 150 struct loop_transport *loop = (struct loop_transport*)tp; -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r1241 r1269 450 450 int addr_len, 451 451 void *token, 452 void (*callback)(pjsip_transport *transport, 453 void *token, 454 pj_ssize_t sent_bytes)); 452 pjsip_transport_callback callback); 455 453 456 454 /* Called by transport manager to shutdown */ … … 1039 1037 int addr_len, 1040 1038 void *token, 1041 void (*callback)(pjsip_transport *transport, 1042 void *token, 1043 pj_ssize_t sent_bytes)) 1039 pjsip_transport_callback callback) 1044 1040 { 1045 1041 struct tcp_transport *tcp = (struct tcp_transport*)transport; … … 1253 1249 /* Read next packet. */ 1254 1250 bytes_read = sizeof(rdata->pkt_info.packet) - rdata->pkt_info.len; 1255 rdata->pkt_info.src_addr_len = sizeof( rdata->pkt_info.src_addr);1251 rdata->pkt_info.src_addr_len = sizeof(pj_sockaddr_in); 1256 1252 status = pj_ioqueue_recv(key, op_key, 1257 1253 rdata->pkt_info.packet+rdata->pkt_info.len, -
pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
r1248 r1269 287 287 int addr_len, 288 288 void *token, 289 void (*callback)(pjsip_transport*, 290 void *token, 291 pj_ssize_t)) 289 pjsip_transport_callback callback) 292 290 { 293 291 struct udp_transport *tp = (struct udp_transport*)transport; -
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r1241 r1269 1006 1006 pjsip_tx_data *tdata, 1007 1007 void *token, 1008 void (*cb)(pjsip_send_state*, 1009 pj_ssize_t sent, 1010 pj_bool_t *cont)) 1008 pjsip_endpt_callback cb) 1011 1009 { 1012 1010 pjsip_host_info dest_info; … … 1227 1225 pjsip_tx_data *tdata, 1228 1226 void *token, 1229 void (*cb)(pjsip_send_state*, 1230 pj_ssize_t sent, 1231 pj_bool_t *cont)) 1227 pjsip_endpt_callback cb) 1232 1228 { 1233 1229 /* Determine which transports and addresses to send the response, … … 1278 1274 pjsip_tx_data *tdata, 1279 1275 void *token, 1280 void (*cb)(pjsip_send_state*, 1281 pj_ssize_t sent, 1282 pj_bool_t *cont)) 1276 pjsip_endpt_callback cb) 1283 1277 { 1284 1278 pjsip_response_addr res_addr; -
pjproject/trunk/pjsip/src/pjsip/sip_util_statefull.c
r1241 r1269 84 84 pj_int32_t timeout, 85 85 void *token, 86 void (*cb)(void*,pjsip_event*))86 pjsip_endpt_send_callback cb) 87 87 { 88 88 pjsip_transaction *tsx;
Note: See TracChangeset
for help on using the changeset viewer.