~vanvugt/+junk/mediatomb

« back to all changes in this revision

Viewing changes to tombupnp/upnp/src/soap/soap_ctrlpt.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-03-02 13:09:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080302130916-zlljdze3kt7vuq4b
Tags: 0.11.0-1
* New upstream release.
* Include message about which inotify headers will be used when enabling
  inotify runtime support.
* Fixed error with use of INTERFACE in init script. Also removed use of -m
  option.
* Including new config.xml options.
* Added more build dependencies for new upstream release.
* Removed build dependency of libid3-dev, taglib is now preferred.
* mediatomb.xpm and manpage.xml is now included in orig tarball.
* inotify patch is not needed anymore.
* md5 patch has been committed upstream and is no longer needed. Also removed
  README.Debian.
* TwinHelix PNG fix is now used. Removed from TODO.
* Adding dependency of iceweasel for mediatomb package.
* Updated copyright file.
* Updated watch file.
* Updated rules file for proper configure options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    
33
33
    TombUPnP - a library for developing UPnP applications.
34
34
    
35
 
    Copyright (C) 2006-2007 Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
 
35
    Copyright (C) 2006-2008 Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
36
36
    
37
37
    This library is free software; you can redistribute it and/or
38
38
    modify it under the terms of the GNU Lesser General Public
46
46
    You should have received a copy of the GNU Lesser General Public
47
47
    License along with this library; if not, write to the Free Software
48
48
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
49
    
 
50
    $Id: soap_ctrlpt.c 1698 2008-02-23 20:48:30Z lww $
49
51
*/
50
52
 
51
53
#include "config.h"
677
679
                          &url, (off_t)(xml_start_len + action_str_len + xml_end_len),   // content-length
678
680
                          ContentTypeHeader,
679
681
                          "SOAPACTION: \"", service_type, "#", name.buf,
680
 
                          name.length, "\"", xml_start, xml_start_len,
681
 
                          action_str, action_str_len, xml_end,
682
 
                          xml_end_len ) != 0 ) {
 
682
                          (size_t)name.length, "\"", 
 
683
                          xml_start, (size_t)xml_start_len,
 
684
                          action_str, (size_t)action_str_len, xml_end,
 
685
                          (size_t)xml_end_len ) != 0 ) {
683
686
        goto error_handler;
684
687
    }
685
688
 
840
843
                                        xml_end_len), // content-length
841
844
                          ContentTypeHeader,
842
845
                          "SOAPACTION: \"", service_type, "#", name.buf,
843
 
                          name.length, "\"",
844
 
                          xml_start, xml_start_len,
845
 
                          xml_header_start, xml_header_start_len,
846
 
                          xml_header_str, xml_header_str_len,
847
 
                          xml_header_end, xml_header_end_len,
848
 
                          xml_body_start, xml_body_start_len,
849
 
                          action_str, action_str_len,
850
 
                          xml_end, xml_end_len ) != 0 ) {
 
846
                          (size_t)name.length, "\"",
 
847
                          xml_start, (size_t)xml_start_len,
 
848
                          xml_header_start, (size_t)xml_header_start_len,
 
849
                          xml_header_str, (size_t)xml_header_str_len,
 
850
                          xml_header_end, (size_t)xml_header_end_len,
 
851
                          xml_body_start, (size_t)xml_body_start_len,
 
852
                          action_str, (size_t)action_str_len,
 
853
                          xml_end, (size_t)xml_end_len ) != 0 ) {
851
854
        goto error_handler;
852
855
    }
853
856
 
945
948
    if( http_MakeMessage( &request, 1, 1, "Q" "sbc" "N" "s" "s" "U" "c" "sss", 
946
949
                          SOAPMETHOD_POST, 
947
950
                          path.buf, 
948
 
                          path.length, 
 
951
                          (size_t)path.length, 
949
952
                          "HOST: ", 
950
953
                          host.buf, 
951
 
                          host.length, 
 
954
                          (size_t)host.length, 
952
955
                          (off_t)(strlen( xml_start ) + strlen( var_name ) + strlen( xml_end )),   // content-length
953
956
                          ContentTypeHeader,
954
957
                          "SOAPACTION: \"urn:schemas"