From 834419fc0d996481293a623b417fb58f0e0a551c Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 1 Aug 2010 13:48:49 +0000 Subject: Re #1070 (multipart): modified Visual Studio projects git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3244 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/build/pjsip_core.dsp | 8 + pjsip/build/pjsip_core.vcproj | 396 +++++++++++++++++----------------- pjsip/build/pjsip_test.dsp | 4 + pjsip/build/pjsip_test.vcproj | 456 ++++++++++++++++++++-------------------- pjsip/src/pjsip/sip_multipart.c | 3 + pjsip/src/test/multipart_test.c | 2 + 6 files changed, 449 insertions(+), 420 deletions(-) diff --git a/pjsip/build/pjsip_core.dsp b/pjsip/build/pjsip_core.dsp index b29e69ec..bd916bec 100644 --- a/pjsip/build/pjsip_core.dsp +++ b/pjsip/build/pjsip_core.dsp @@ -108,6 +108,10 @@ SOURCE=..\src\pjsip\sip_msg.c # End Source File # Begin Source File +SOURCE=..\src\pjsip\sip_multipart.c +# End Source File +# Begin Source File + SOURCE=..\src\pjsip\sip_parser.c # End Source File # Begin Source File @@ -253,6 +257,10 @@ SOURCE=..\include\pjsip\sip_msg.h # End Source File # Begin Source File +SOURCE=..\include\pjsip\sip_multipart.h +# End Source File +# Begin Source File + SOURCE=..\include\pjsip\sip_parser.h # End Source File # Begin Source File diff --git a/pjsip/build/pjsip_core.vcproj b/pjsip/build/pjsip_core.vcproj index 8d0228a5..7d4558a7 100644 --- a/pjsip/build/pjsip_core.vcproj +++ b/pjsip/build/pjsip_core.vcproj @@ -11,16 +11,16 @@ Name="Win32" /> @@ -130,7 +130,7 @@ /> @@ -196,7 +196,7 @@ /> - - @@ -328,7 +320,7 @@ /> @@ -394,7 +386,7 @@ /> - - + + @@ -584,7 +576,7 @@ /> - - @@ -743,9 +727,9 @@ /> @@ -809,11 +793,12 @@ /> - - @@ -914,7 +890,7 @@ /> + + - - @@ -1104,7 +1080,7 @@ /> @@ -1170,7 +1146,7 @@ /> @@ -1236,7 +1212,7 @@ /> @@ -1302,7 +1278,7 @@ /> @@ -1368,7 +1344,7 @@ /> + + @@ -1519,9 +1503,9 @@ /> @@ -1585,9 +1569,9 @@ /> @@ -1624,7 +1608,7 @@ /> @@ -1690,7 +1674,7 @@ /> @@ -1756,7 +1740,7 @@ /> @@ -1822,7 +1806,7 @@ /> + + @@ -1946,7 +1938,7 @@ /> @@ -2012,7 +2004,7 @@ /> @@ -2078,7 +2070,7 @@ /> @@ -2144,7 +2136,7 @@ /> @@ -2210,7 +2202,7 @@ /> @@ -2276,7 +2268,7 @@ /> + + @@ -2400,7 +2400,7 @@ /> @@ -2466,7 +2466,7 @@ /> @@ -2532,7 +2532,7 @@ /> @@ -2598,7 +2598,7 @@ /> + + @@ -3507,15 +3511,17 @@ /> @@ -4138,6 +4142,10 @@ RelativePath="..\include\pjsip\sip_msg.h" > + + diff --git a/pjsip/build/pjsip_test.dsp b/pjsip/build/pjsip_test.dsp index 5d521bcb..fd908070 100644 --- a/pjsip/build/pjsip_test.dsp +++ b/pjsip/build/pjsip_test.dsp @@ -117,6 +117,10 @@ SOURCE="..\src\test\msg_test.c" # End Source File # Begin Source File +SOURCE=..\src\test\multipart_test.c +# End Source File +# Begin Source File + SOURCE="..\src\test\regc_test.c" # End Source File # Begin Source File diff --git a/pjsip/build/pjsip_test.vcproj b/pjsip/build/pjsip_test.vcproj index cd9e2ca2..b9312238 100644 --- a/pjsip/build/pjsip_test.vcproj +++ b/pjsip/build/pjsip_test.vcproj @@ -11,16 +11,16 @@ Name="Win32" /> + + diff --git a/pjsip/src/pjsip/sip_multipart.c b/pjsip/src/pjsip/sip_multipart.c index 5d40ddb5..b5d1f540 100644 --- a/pjsip/src/pjsip/sip_multipart.c +++ b/pjsip/src/pjsip/sip_multipart.c @@ -175,6 +175,8 @@ static void* multipart_clone_data(pj_pool_t *pool, const void *data, struct multipart_data *dst; const pjsip_multipart_part *src_part; + PJ_UNUSED_ARG(len); + src = (const struct multipart_data*) data; dst = PJ_POOL_ALLOC_T(pool, struct multipart_data); @@ -511,6 +513,7 @@ PJ_DEF(pjsip_msg_body*) pjsip_multipart_parse(pj_pool_t *pool, TRACE_((THIS_FILE, "Started parsing multipart body")); /* Get the boundary value in the ctype */ + boundary.ptr = NULL; boundary.slen = 0; ctype_param = pjsip_param_find(&ctype->param, &STR_BOUNDARY); if (ctype_param) { diff --git a/pjsip/src/test/multipart_test.c b/pjsip/src/test/multipart_test.c index bb56b8fe..37c81670 100644 --- a/pjsip/src/test/multipart_test.c +++ b/pjsip/src/test/multipart_test.c @@ -149,6 +149,8 @@ static pj_status_t verify1(pj_pool_t *pool, pjsip_msg_body *body) pjsip_multipart_part *part; int rc; + PJ_UNUSED_ARG(pool); + /* Check content-type: "multipart/mixed;boundary=12345" */ init_media_type(&mt, "multipart", "mixed", "12345"); if (pjsip_media_type_cmp(&body->content_type, &mt) != 0) -- cgit v1.2.3