Ignore:
Timestamp:
Nov 24, 2006 9:02:19 AM (17 years ago)
Author:
bennylp
Message:

Fixed footprint calculation script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/footprint.c

    r604 r825  
    4343#define HAS_PJLIB_XML 
    4444#define HAS_PJLIB_SCANNER 
     45#define HAS_PJLIB_DNS 
     46#define HAS_PJLIB_RESOLVER 
    4547 
    4648#define HAS_PJSIP_CORE_MSG_ELEM 
     
    8385#define HAS_PJMEDIA_GSM_CODEC 
    8486#define HAS_PJMEDIA_SPEEX_CODEC 
     87#define HAS_PJMEDIA_ILBC_CODEC 
    8588#endif 
    8689 
     
    152155    pj_scan_get_newline(NULL); 
    153156    pj_scan_restore_state(NULL, NULL); 
     157#endif 
     158 
     159#ifdef HAS_PJLIB_DNS 
     160    pj_dns_make_query(NULL, NULL, 0, 0, NULL); 
     161    pj_dns_parse_packet(NULL, NULL, 0, NULL); 
     162    pj_dns_packet_dup(NULL, NULL, NULL); 
     163#endif 
     164 
     165#ifdef HAS_PJLIB_RESOLVER 
     166    pj_dns_resolver_create(NULL, NULL, 0, NULL, NULL, NULL); 
     167    pj_dns_resolver_set_ns(NULL, 0, NULL, NULL); 
     168    pj_dns_resolver_handle_events(NULL, NULL); 
     169    pj_dns_resolver_destroy(NULL, 0); 
     170    pj_dns_resolver_start_query(NULL, NULL, 0, 0, NULL, NULL, NULL); 
     171    pj_dns_resolver_cancel_query(NULL, 0); 
     172    pj_dns_resolver_add_entry(NULL, NULL, 0); 
    154173#endif 
    155174 
     
    352371    pjsip_pres_init_module(NULL, NULL); 
    353372    pjsip_pres_instance(); 
    354     pjsip_pres_create_uac(NULL, NULL, NULL); 
     373    pjsip_pres_create_uac(NULL, NULL, 0, NULL); 
    355374    pjsip_pres_create_uas(NULL, NULL, NULL, NULL); 
    356375    pjsip_pres_terminate(NULL, PJ_FALSE); 
     
    526545#endif 
    527546 
     547#ifdef HAS_PJMEDIA_ILBC_CODEC 
     548    pjmedia_codec_ilbc_init(NULL, 0); 
     549    pjmedia_codec_ilbc_deinit(); 
     550#endif 
     551 
    528552    return 0; 
    529553} 
Note: See TracChangeset for help on using the changeset viewer.