- Timestamp:
- Oct 29, 2006 6:13:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/pjsip-apps/src/samples/sipstateless.c
r448 r789 32 32 #include <pjlib-util.h> 33 33 #include <pjlib.h> 34 #include "../../../pjlib/src/pj/os_symbian.h" 34 35 35 36 … … 62 63 63 64 65 extern "C" 66 { 67 int pj_app_main(int argc, char *argv[]); 68 } 69 70 71 static void app_perror(pj_status_t status) 72 { 73 char errmsg[PJ_ERR_MSG_SIZE]; 74 pj_strerror(status, errmsg, sizeof(errmsg)); 75 PJ_LOG(1,("main", "Error: %s", errmsg)); 76 } 77 78 64 79 /* 65 * main()80 * pj_app_main() 66 81 * 67 82 */ 68 int main()83 int pj_app_main(int argc, char *argv[]) 69 84 { 70 85 pj_caching_pool cp; … … 93 108 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 94 109 95 96 110 /* Then init PJLIB-UTIL: */ 97 111 status = pjlib_util_init(); … … 99 113 100 114 /* Must create a pool factory before we can allocate any memory. */ 101 pj_caching_pool_init(&cp, &pj_pool_factory_default_policy, 0);115 pj_caching_pool_init(&cp, pj_pool_factory_get_default_policy(), 0); 102 116 103 117 … … 135 149 status = pjsip_udp_transport_start( sip_endpt, &addr, NULL, 1, NULL); 136 150 if (status != PJ_SUCCESS) { 151 char errmsg[PJ_ERR_MSG_SIZE]; 152 153 pj_strerror(status, errmsg, sizeof(errmsg)); 137 154 PJ_LOG(3,(THIS_FILE, 138 "Error starting UDP transport (port in use?)"));155 "Error starting UDP transport: %s", errmsg)); 139 156 return 1; 140 157 }
Note: See TracChangeset
for help on using the changeset viewer.