Marcelo Roberto Jimenez
7ec5511a8d
Fixes many problems in sample code.
...
In particular, undoes 25c908c558
:
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 7e8d1787c9
)
2010-12-23 22:23:51 -02:00
Marcelo Roberto Jimenez
d4ef92e1bd
Simplify code in SampleUtil_GetFirstDocumentItem().
...
(cherry picked from commit 70d2a7c9e7
)
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 4b0c8d52b8
)
2010-12-22 11:56:38 -02:00
Marcelo Roberto Jimenez
e91e4bea0f
Fix for segfault in sample code.
...
(cherry picked from commit c05bbec6ec
)
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 d5af7efeb8
)
2010-12-22 10:00:40 -02:00
Marcelo Roberto Jimenez
0679697ffd
White spaces and some debugging information.
...
(cherry picked from commit c8af5ec806
)
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 1ee8cd9e1a
)
2010-12-21 08:35:43 -02:00
Marcelo Roberto Jimenez
270160b644
Missed this inline in ssdplib.h.
...
(cherry picked from commit a0ebf23785
)
2010-12-19 22:57:44 -02:00
Marcelo Roberto Jimenez
5ef17de780
Remove unused enum SsdpCmdType and unused typedef Event.
...
(cherry picked from commit cdf35baa34
)
2010-12-19 22:55:41 -02:00
Marcelo Roberto Jimenez
408d65ecc8
White spaces.
...
(cherry picked from commit 6af93e6ca6
)
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 b2a88aa70b
)
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 bb5a80c05b
)
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 7e8e5621a8
)
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 d6418b3e17
)
2010-12-19 19:07:18 -02:00
Marcelo Roberto Jimenez
59c70e2a0e
Doxygen.
...
(cherry picked from commit e8106e4f05
)
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 9a28fcc95b
)
2010-11-24 12:33:53 -02:00
Marcelo Roberto Jimenez
3bf6f90751
Reformat calls to http_SendMessage().
...
(cherry picked from commit bfbd07cb40
)
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 2c3bce13bd
)
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 ed0ebe1588
)
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 6e7a2bb2dc
)
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 09f2b6ca30
)
2010-11-20 13:50:28 -02:00
Marcelo Roberto Jimenez
c45640f619
upnp: fix for compiler warnings.
...
(cherry picked from commit 9b3a0999a9
)
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 6bee05a517
)
2010-11-18 15:12:18 -02:00
Marcelo Roberto Jimenez
838a8fea28
samples: fix compiler warnings.
...
(cherry picked from commit 2e96edcbc5
)
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 ef0aa38958
)
2010-11-18 12:04:02 -02:00
Marcelo Roberto Jimenez
b3fdad3988
samples: Put more data in common_data.h.
...
(cherry picked from commit 86159bc2a6
)
2010-11-18 01:08:12 -02:00
Marcelo Roberto Jimenez
60279a57cc
samples: Unified sample code.
...
This patch removes duplicated code in samples.
2010-11-18 01:07:20 -02:00
Marcelo Roberto Jimenez
05ce67b61b
Update autoconfig.h.
...
(cherry picked from commit 8434e1e936
)
2010-11-17 23:38:49 -02:00
Marcelo Roberto Jimenez
f9d9091a94
Remove "upnp_" prefix from samples.
2010-11-17 23:35:07 -02:00
Marcelo Roberto Jimenez
57b1169850
samples: Fix compiler warnings.
2010-11-17 12:01:04 -02:00
Marcelo Roberto Jimenez
4d2f1f7ba6
Fix some compiler warnings and some Doxygen.
2010-11-17 01:33:57 -02:00
Marcelo Roberto Jimenez
d5fa48bd37
Some Doxygen in upnp_tv_device.
2010-11-16 23:19:33 -02:00
Marcelo Roberto Jimenez
0d625bd2e1
Some Doxygen on sample_util.
2010-11-16 22:47:22 -02:00
Marcelo Roberto Jimenez
bc8eebf6f8
Deal with -ansi in list.h.
2010-11-16 22:11:03 -02:00