Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / minidlna / upnpsoap.h
blob484f5124c1de0a6b9826ab485f9a346983d8accf
1 /* MiniDLNA project
2 * http://minidlna.sourceforge.net/
4 * MiniDLNA media server
5 * Copyright (C) 2008-2009 Justin Maggard
7 * This file is part of MiniDLNA.
9 * MiniDLNA is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
13 * MiniDLNA is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef __UPNPSOAP_H__
22 #define __UPNPSOAP_H__
24 #define DEFAULT_RESP_SIZE 131072
25 #define MAX_RESPONSE_SIZE 2097152
27 #define CONTENT_DIRECTORY_SCHEMAS \
28 " xmlns:dc=\"http://purl.org/dc/elements/1.1/\"" \
29 " xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\"" \
30 " xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\""
31 #define DLNA_NAMESPACE \
32 " xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\""
33 #define PV_NAMESPACE \
34 " xmlns:pv=\"http://www.pv.com/pvns/\""
36 struct Response
38 struct string_s *str;
39 int start;
40 int returned;
41 int requested;
42 int iface;
43 uint32_t filter;
44 uint32_t flags;
45 enum client_types client;
48 /* ExecuteSoapAction():
49 * this method executes the requested Soap Action */
50 void
51 ExecuteSoapAction(struct upnphttp *, const char *, int);
53 /* SoapError():
54 * sends a correct SOAP error with an UPNPError code and
55 * description */
56 void
57 SoapError(struct upnphttp * h, int errCode, const char * errDesc);
59 #endif