Marcelo Roberto Jimenez
348bf19412
Use config.h to test for the availability of strndup() and strnlen().
...
(cherry picked from commit 541679d6513ce0c4fc257b2b6f6708e5819c84eb)
2011-01-16 21:06:00 -02:00
Marcelo Roberto Jimenez
60c9e95637
Fix for UpnpFileInfo_get_LastModified() in http_MakeMessage().
...
UpnpFileInfo_get_LastModified() returns time_t, and http_MakeMessage()
takes a "time_t *". Thanks to Chandra Penke for pointing the bug.
2011-01-16 15:09:01 -02:00
Chandra Penke
1e2172819d
Fixes chunked transfer encoding in HTTP client API
...
(cherry picked from commit cb1188d2bcfb981e9f07ecc2b47ec4285857262d)
2011-01-15 21:14:00 -02:00
Marcelo Roberto Jimenez
6333504d45
Null termination of strndup() implementation on systems missing it.
...
Also, implementation of strnlen() on systems missing it.
(cherry picked from commit 189ce59dbe3861a9eaa23671540d61483ae9e26d)
2011-01-14 22:06:26 -02:00
Marcelo Roberto Jimenez
1232119540
Doxygen on membuffer.
...
(cherry picked from commit 4815e52586449886d7d2ef8e5d88edba137cdb4f)
2011-01-14 10:28:29 -02:00
Marcelo Roberto Jimenez
9d667685ec
Minor change in membuffer.c to include "membuffer.h"
...
...without looking in the standard header path. This allows pupnp
to build in xcode.
(cherry picked from commit 9051731a93c76d963b636213f6ca5596e73bce7b)
2011-01-14 10:28:23 -02:00
Marcelo Roberto Jimenez
82207a3e92
Leave just one call to gmtime() in http_MakeMessage().
...
(cherry picked from commit 39fd869db800fe2cb3d44d46e7b747f61d546036)
2011-01-02 22:37:25 -02:00
Marcelo Roberto Jimenez
8190adb3b9
Make sure va_end() is called in http_MakeMessage().
...
(cherry picked from commit 8997e7fff61ba3a10421f560565268257cae61c8)
2011-01-02 22:37:18 -02:00
Marcelo Roberto Jimenez
7ec5511a8d
Fixes many problems in sample code.
...
In particular, undoes 25c908c558c8e60eb386c155a6b93add447ffec0:
SF Patch Tracker [ 2836704 ] Search for nested serviceList (not
stopping at the first lis
Submitted By: zephyrus ( zephyrus00jp )
The original zephyrus' code is still #ifdef'd in the file, if someone
wishes to fix it, check for "#ifdef OLD_FIND_SERVICE_CODE".
(cherry picked from commit 7e8d1787c9fee5125167e0a352f4617c4b135b42)
2010-12-23 22:23:51 -02:00
Marcelo Roberto Jimenez
d4ef92e1bd
Simplify code in SampleUtil_GetFirstDocumentItem().
...
(cherry picked from commit 70d2a7c9e7bf3cfd073c519211ea4379ac2ae8f1)
2010-12-23 22:17:52 -02:00
Marcelo Roberto Jimenez
3bf350cceb
Doxygen and white spaces in samples.
2010-12-22 11:59:24 -02:00
Marcelo Roberto Jimenez
e07ba67188
Remove unnecessary inclusion of param.h.
...
(cherry picked from commit 4b0c8d52b8c1a34b55e605f0ea78277e622410f0)
2010-12-22 11:56:38 -02:00
Marcelo Roberto Jimenez
e91e4bea0f
Fix for segfault in sample code.
...
(cherry picked from commit c05bbec6ec5ab7306b39652b5600e07c29107778)
2010-12-22 11:56:31 -02:00
Marcelo Roberto Jimenez
c38724dfa9
Fix debug compilation when CFLAGS is set on the configure line.
...
(cherry picked from commit d5af7efeb88b0d8de12d68648f960fd8a8c9cdab)
2010-12-22 10:00:40 -02:00
Marcelo Roberto Jimenez
0679697ffd
White spaces and some debugging information.
...
(cherry picked from commit c8af5ec806a92b3a8bd096a36fb0f625350d8d19)
2010-12-22 10:00:32 -02:00
Marcelo Roberto Jimenez
3ec9b0c015
Ivan Romanov's system file inclusion patch for WIN32 (mingw).
...
(cherry picked from commit 1ee8cd9e1a1608be125f61946b62ea09ea5cbc9d)
2010-12-21 08:35:43 -02:00
Marcelo Roberto Jimenez
270160b644
Missed this inline in ssdplib.h.
...
(cherry picked from commit a0ebf23785e784042070863f3b4b0012d4b8dd2a)
2010-12-19 22:57:44 -02:00
Marcelo Roberto Jimenez
5ef17de780
Remove unused enum SsdpCmdType and unused typedef Event.
...
(cherry picked from commit cdf35baa34bfca25b141c64ebd6697195bd27322)
2010-12-19 22:55:41 -02:00
Marcelo Roberto Jimenez
408d65ecc8
White spaces.
...
(cherry picked from commit 6af93e6ca61ddbafea514332f87c9455190201c4)
2010-12-19 21:20:29 -02:00
Marcelo Roberto Jimenez
66bdf6effb
Less include file mess and doxygenation.
2010-12-19 20:00:56 -02:00
Marcelo Roberto Jimenez
d6f1b5de59
Doxygenation of SSDP library.
2010-12-19 19:57:04 -02:00
Marcelo Roberto Jimenez
6d7b3e65f8
Doxygen.
2010-12-19 19:18:43 -02:00
Marcelo Roberto Jimenez
3ad98ad746
SF Tracker: Patches - Fedora mingw32 compilation - ID: 3138849
...
Details:
Hello. I trying compile libupnp-1.6.10 on the Fedora 14 MinGW
Environment and get many errors. I create patch to fix it. With this
patch i can get static library. This patch is very raw.
Submitted: Ivan Romanov (ivanromanov) - 2010-12-16 23:29:19 UTC
(cherry picked from commit b2a88aa70bd5deeadf597f1ba30e6d8fca606eec)
2010-12-19 19:10:44 -02:00
Marcelo Roberto Jimenez
82738e3ea5
Get rid of useless integer typedefs.
...
Remove unsigned32, unsigned16 and unsigned8 references in the code.
(cherry picked from commit bb5a80c05ba8357771dafbf436e9055b567f38be)
2010-12-19 19:10:23 -02:00
Marcelo Roberto Jimenez
2ccaf7fac8
Remove unnecessary header <sys/utsname.h> from upnpapi.c.
...
(cherry picked from commit 7e8e5621a8d0a81f2713ecf666911058de806078)
2010-12-19 19:10:09 -02:00
Marcelo Roberto Jimenez
b1ae4db35a
Use the new include files UpnpIntTypes.h, UpnpStdInt.h and UpnpUniStd.h.
...
Trying to keep platform dependency on the headers and clean the main
code a little bit.
2010-12-19 19:09:35 -02:00
Marcelo Roberto Jimenez
dd75baab6b
White spaces.
...
(cherry picked from commit d6418b3e17d0241cdaa4af73355bb93e50c5acf1)
2010-12-19 19:07:18 -02:00
Marcelo Roberto Jimenez
59c70e2a0e
Doxygen.
...
(cherry picked from commit e8106e4f055867fe1b409de9d10f3df69ae124ea)
2010-12-19 19:07:03 -02:00
Marcelo Roberto Jimenez
ad0584150f
Changelog fix from 1.6.x.
2010-12-11 16:53:32 -02:00
Marcelo Roberto Jimenez
72233660b7
Fixes a bug introduced in a previous commit in http_SendMessage.
...
The variable num_read was beeing used without beeing initialized.
Also, clean up the function return path and make sure va_end()
is beeing called.
(cherry picked from commit 9a28fcc95b502af6cfb6e6f303ea07c86336bdc1)
2010-11-24 12:33:53 -02:00
Marcelo Roberto Jimenez
3bf6f90751
Reformat calls to http_SendMessage().
...
(cherry picked from commit bfbd07cb4097df86b6afb9419e23d271ddc8bd6f)
2010-11-24 12:33:52 -02:00
Marcelo Roberto Jimenez
0977f8864d
soap_device: Doxygen and code reformat.
2010-11-24 12:33:52 -02:00
Fabrice Fontaine
57e9584f4e
Major bug fix in http_SendMessage.
...
Currently, http_SendMessage was not able to write to write a buffer
due to a bad use of file_buf instead of buf. This bug was introduced by
the 0197-Doxygen-reformating-compiler-warnings patch.
(cherry picked from commit 2c3bce13bdcf534c77f525c7e7960cad2bf43087)
2010-11-24 11:54:54 -02:00
Fabrice Fontaine
86783f0329
Returning the SID in Upnp_Event_Subscribe.
...
Currently, Upnp_Event_Subscribe always contains an empty chain in the
Sid parameter. This patch now saves the client Subscription ID in this
parameter so Control Points can see and use the same SID in the
Upnp_Event_Subscribe and in the Upnp_Event structures.
2010-11-24 11:54:24 -02:00
Juergen Lock
25641ac51a
Two fixes from Juergen Lock <nox(at)jelal.kn-bremen.de>:
...
1. varargs: pass size of CRLF as size_t not as int:
--- upnp/src/gena/gena_device.c.orig
+++ upnp/src/gena/gena_device.c
@@ -225,7 +225,7 @@ static UPNP_INLINE int notify_send_and_r
"bbb",
start_msg.buf, start_msg.length,
propertySet, strlen(propertySet),
- "\r\n", 2);
+ "\r\n", sizeof "\r\n" - 1);
if (ret_code) {
membuffer_destroy(&start_msg);
sock_destroy(&info, SD_BOTH);
2. Remove "b" arg here, there is no buffer passed: (this caused a pointer
to be interpreted as a buffer size to be alloc'd/copied, hence the 32 GB.)
--- upnp/src/genlib/net/http/webserver.c.orig
+++ upnp/src/genlib/net/http/webserver.c
@@ -1262,7 +1262,7 @@ static int process_request(
// Content-Range: bytes 222-3333/4000 HTTP_PARTIAL_CONTENT
// Transfer-Encoding: chunked
if (http_MakeMessage(headers, resp_major, resp_minor,
- "R" "TLD" "s" "tcS" "b" "Xc" "sCc",
+ "R" "TLD" "s" "tcS" "Xc" "sCc",
HTTP_OK, // status code
finfo.content_type, // content type
RespInstr, // language info
(cherry picked from commit ed0ebe15883a46dd4ad885cce77db467db68306f)
2010-11-22 23:29:28 -02:00
Marcelo Roberto Jimenez
252a25af32
White spaces.
...
(cherry picked from commit d057b2f82a11f4f4d5b9a7524e96348ad3c16106)
2010-11-22 13:21:12 -02:00
Marcelo Roberto Jimenez
f260a0e9d6
Template object for ssdp_ResultData.
2010-11-22 10:22:06 -02:00
Marcelo Roberto Jimenez
9181020d3b
Fix for compiler warning about conversion to off_t.
2010-11-22 10:21:28 -02:00
Marcelo Roberto Jimenez
1316c82d04
Remove the "xboolean" typedef from the code base.
...
(cherry picked from commit 6e7a2bb2dc02f20250d13c1b21d74c4fcce1b1f5)
2010-11-22 09:29:02 -02:00
Marcelo Roberto Jimenez
9e7e7e3b89
Doxygen, reformating, compiler warnings.
2010-11-21 22:36:14 -02:00
Marcelo Roberto Jimenez
978f10449f
ssdp, soap, genlib: fix compiler warnings.
2010-11-21 22:33:05 -02:00
Marcelo Roberto Jimenez
2685b5bb65
gena: fix several compiler warnings.
2010-11-20 14:19:09 -02:00
Marcelo Roberto Jimenez
5bb8ee4b02
uuid.c: fix compiler warnings.
...
(cherry picked from commit 09f2b6ca30c5b5c98168d0c362aa04e406a2e3da)
2010-11-20 13:50:28 -02:00
Marcelo Roberto Jimenez
c45640f619
upnp: fix for compiler warnings.
...
(cherry picked from commit 9b3a0999a9af019222d960e636975ee4e7490528)
2010-11-18 15:12:18 -02:00
Marcelo Roberto Jimenez
ec0035ca83
upnp: fix for compiler warnings and incorrect API.
2010-11-18 15:12:18 -02:00
Marcelo Roberto Jimenez
4c2aa70a3a
samples: One more code reorganization.
...
(cherry picked from commit 6bee05a517cffa610ad4a08db3eea8ceb73ad5eb)
2010-11-18 15:12:18 -02:00
Marcelo Roberto Jimenez
838a8fea28
samples: fix compiler warnings.
...
(cherry picked from commit 2e96edcbc5d8eb7b3a3479b924de119faaecc77b)
2010-11-18 15:12:18 -02:00
Marcelo Roberto Jimenez
196a99d1c7
Update to 1.8.x configure.ac.
2010-11-18 13:21:38 -02:00
Marcelo Roberto Jimenez
f088f94803
samples: More code reorganization.
...
(cherry picked from commit ef0aa3895825b472fbc449fb4ffe397a59f6db72)
2010-11-18 12:04:02 -02:00
Marcelo Roberto Jimenez
b3fdad3988
samples: Put more data in common_data.h.
...
(cherry picked from commit 86159bc2a6c721f592decc7ff8981acca8e3668a)
2010-11-18 01:08:12 -02:00