summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/samples/footprint.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-07-05 20:45:55 +0000
committerBenny Prijono <bennylp@teluu.com>2006-07-05 20:45:55 +0000
commit23b1172e7e04fd5a7b2b5db35a5cd8c06526b82f (patch)
tree8573bdf5d9041eb9faf2e0ca557243580f3f213f /pjsip-apps/src/samples/footprint.c
parent2df60064afb5cb53076764d39badfd64939833b1 (diff)
Some improvements in footprint generation
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@586 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/samples/footprint.c')
-rw-r--r--pjsip-apps/src/samples/footprint.c37
1 files changed, 35 insertions, 2 deletions
diff --git a/pjsip-apps/src/samples/footprint.c b/pjsip-apps/src/samples/footprint.c
index 9926d6ab..6cb630e2 100644
--- a/pjsip-apps/src/samples/footprint.c
+++ b/pjsip-apps/src/samples/footprint.c
@@ -32,13 +32,16 @@
#include <pjmedia-codec.h>
#include <pjlib-util.h>
#include <pjlib.h>
-
+#include <stdlib.h>
/* All flags: */
#if 0
+#define HAS_PJLIB
+
#define HAS_PJLIB_STUN
#define HAS_PJLIB_GETOPT
#define HAS_PJLIB_XML
+#define HAS_PJLIB_SCANNER
#define HAS_PJSIP_CORE
#define HAS_PJSIP_UDP_TRANSPORT
@@ -81,7 +84,11 @@
int dummy_function()
{
pj_caching_pool cp;
-
+
+ sprintf(NULL, "%d", 0);
+ rand();
+
+#ifdef HAS_PJLIB
pj_init();
pj_caching_pool_init(&cp, NULL, 0);
pj_array_erase(NULL, 0, 0, 0);
@@ -93,6 +100,7 @@ int dummy_function()
pj_ioqueue_register_sock(NULL, NULL, 0, NULL, NULL, NULL);
pj_pool_alloc(NULL, 0);
pj_timer_heap_create(NULL, 0, NULL);
+#endif
#ifdef HAS_PJLIB_STUN
pj_stun_get_mapped_addr(&cp.factory, 0, NULL, NULL, 80, NULL, 80, NULL);
@@ -116,6 +124,31 @@ int dummy_function()
pj_xml_find(NULL, NULL, NULL, NULL);
#endif
+#ifdef HAS_PJLIB_SCANNER
+ pj_cis_buf_init(NULL);
+ pj_cis_init(NULL, NULL);
+ pj_cis_dup(NULL, NULL);
+ pj_cis_add_alpha(NULL);
+ pj_cis_add_str(NULL, NULL);
+
+ pj_scan_init(NULL, NULL, 0, 0, NULL);
+ pj_scan_fini(NULL);
+ pj_scan_peek(NULL, NULL, NULL);
+ pj_scan_peek_n(NULL, 0, NULL);
+ pj_scan_peek_until(NULL, NULL, NULL);
+ pj_scan_get(NULL, NULL, NULL);
+ pj_scan_get_unescape(NULL, NULL, NULL);
+ pj_scan_get_quote(NULL, 0, 0, NULL);
+ pj_scan_get_n(NULL, 0, NULL);
+ pj_scan_get_char(NULL);
+ pj_scan_get_until(NULL, NULL, NULL);
+ pj_scan_strcmp(NULL, NULL, 0);
+ pj_scan_stricmp(NULL, NULL, 0);
+ pj_scan_stricmp_alnum(NULL, NULL, 0);
+ pj_scan_get_newline(NULL);
+ pj_scan_restore_state(NULL, NULL);
+#endif
+
#ifdef HAS_PJSIP_CORE
pjsip_endpt_create(NULL, NULL, NULL);