comparison src/cds.h @ 125:e413158cae13

Add ushare project files.
author naoyan@johnstown.minaminoshima.org
date Sun, 03 Oct 2010 11:35:19 +0900
parents
children
comparison
equal deleted inserted replaced
124:9c7bc6c0327e 125:e413158cae13
1 /*
2 * cds.h : GeeXboX uShare Content Directory Service header.
3 * Originally developped for the GeeXboX project.
4 * Parts of the code are originated from GMediaServer from Oskar Liljeblad.
5 * Copyright (C) 2005-2007 Benjamin Zores <ben@geexbox.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21
22 #ifndef CDS_H_
23 #define CDS_H_
24
25 #define CDS_DESCRIPTION \
26 "<?xml version=\"1.0\" encoding=\"utf-8\"?>" \
27 "<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">" \
28 " <specVersion>" \
29 " <major>1</major>" \
30 " <minor>0</minor>" \
31 " </specVersion>" \
32 " <actionList>" \
33 " <action>" \
34 " <name>Browse</name>" \
35 " <argumentList>" \
36 " <argument>" \
37 " <name>ObjectID</name>" \
38 " <direction>in</direction>" \
39 " <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>" \
40 " </argument>" \
41 " <argument>" \
42 " <name>BrowseFlag</name>" \
43 " <direction>in</direction>" \
44 " <relatedStateVariable>A_ARG_TYPE_BrowseFlag</relatedStateVariable>" \
45 " </argument>" \
46 " <argument>" \
47 " <name>Filter</name>" \
48 " <direction>in</direction>" \
49 " <relatedStateVariable>A_ARG_TYPE_Filter</relatedStateVariable>" \
50 " </argument>" \
51 " <argument>" \
52 " <name>StartingIndex</name>" \
53 " <direction>in</direction>" \
54 " <relatedStateVariable>A_ARG_TYPE_Index</relatedStateVariable>" \
55 " </argument>" \
56 " <argument>" \
57 " <name>RequestedCount</name>" \
58 " <direction>in</direction>" \
59 " <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>" \
60 " </argument>" \
61 " <argument>" \
62 " <name>SortCriteria</name>" \
63 " <direction>in</direction>" \
64 " <relatedStateVariable>A_ARG_TYPE_SortCriteria</relatedStateVariable>" \
65 " </argument>" \
66 " <argument>" \
67 " <name>Result</name>" \
68 " <direction>out</direction>" \
69 " <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>" \
70 " </argument>" \
71 " <argument>" \
72 " <name>NumberReturned</name>" \
73 " <direction>out</direction>" \
74 " <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>" \
75 " </argument>" \
76 " <argument>" \
77 " <name>TotalMatches</name>" \
78 " <direction>out</direction>" \
79 " <relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable>" \
80 " </argument>" \
81 " <argument>" \
82 " <name>UpdateID</name>" \
83 " <direction>out</direction>" \
84 " <relatedStateVariable>A_ARG_TYPE_UpdateID</relatedStateVariable>" \
85 " </argument>" \
86 " </argumentList>" \
87 " </action>" \
88 " <action>" \
89 " <name>DestroyObject</name>" \
90 " <argumentList>" \
91 " <argument>" \
92 " <name>ObjectID</name>" \
93 " <direction>in</direction>" \
94 " <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>" \
95 " </argument>" \
96 " </argumentList>" \
97 " </action>" \
98 " <action>" \
99 " <name>GetSystemUpdateID</name>" \
100 " <argumentList>" \
101 " <argument>" \
102 " <name>Id</name>" \
103 " <direction>out</direction>" \
104 " <relatedStateVariable>SystemUpdateID</relatedStateVariable>" \
105 " </argument>" \
106 " </argumentList>" \
107 " </action>" \
108 " <action>" \
109 " <name>GetSearchCapabilities</name>" \
110 " <argumentList>" \
111 " <argument>" \
112 " <name>SearchCaps</name>" \
113 " <direction>out</direction>" \
114 " <relatedStateVariable>SearchCapabilities</relatedStateVariable>" \
115 " </argument>" \
116 " </argumentList>" \
117 " </action>" \
118 " <action>" \
119 " <name>GetSortCapabilities</name>" \
120 " <argumentList>" \
121 " <argument>" \
122 " <name>SortCaps</name>" \
123 " <direction>out</direction>" \
124 " <relatedStateVariable>SortCapabilities</relatedStateVariable>" \
125 " </argument>" \
126 " </argumentList>" \
127 " </action>" \
128 " <action>" \
129 " <name>UpdateObject</name>" \
130 " <argumentList>" \
131 " <argument>" \
132 " <name>ObjectID</name>" \
133 " <direction>in</direction>" \
134 " <relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable>" \
135 " </argument>" \
136 " <argument>" \
137 " <name>CurrentTagValue</name>" \
138 " <direction>in</direction>" \
139 " <relatedStateVariable>A_ARG_TYPE_TagValueList</relatedStateVariable>" \
140 " </argument>" \
141 " <argument>" \
142 " <name>NewTagValue</name>" \
143 " <direction>in</direction>" \
144 " <relatedStateVariable>A_ARG_TYPE_TagValueList</relatedStateVariable>" \
145 " </argument>" \
146 " </argumentList>" \
147 " </action>" \
148 " </actionList>" \
149 " <serviceStateTable>" \
150 " <stateVariable sendEvents=\"no\">" \
151 " <name>A_ARG_TYPE_BrowseFlag</name>" \
152 " <dataType>string</dataType>" \
153 " <allowedValueList>" \
154 " <allowedValue>BrowseMetadata</allowedValue>" \
155 " <allowedValue>BrowseDirectChildren</allowedValue>" \
156 " </allowedValueList>" \
157 " </stateVariable>" \
158 " <stateVariable sendEvents=\"yes\">" \
159 " <name>SystemUpdateID</name>" \
160 " <dataType>ui4</dataType>" \
161 " </stateVariable>" \
162 " <stateVariable sendEvents=\"no\">" \
163 " <name>A_ARG_TYPE_Count</name>" \
164 " <dataType>ui4</dataType>" \
165 " </stateVariable>" \
166 " <stateVariable sendEvents=\"no\">" \
167 " <name>A_ARG_TYPE_SortCriteria</name>" \
168 " <dataType>string</dataType>" \
169 " </stateVariable>" \
170 " <stateVariable sendEvents=\"no\">" \
171 " <name>SortCapabilities</name>" \
172 " <dataType>string</dataType>" \
173 " </stateVariable>" \
174 " <stateVariable sendEvents=\"no\">" \
175 " <name>A_ARG_TYPE_Index</name>" \
176 " <dataType>ui4</dataType>" \
177 " </stateVariable>" \
178 " <stateVariable sendEvents=\"no\">" \
179 " <name>A_ARG_TYPE_ObjectID</name>" \
180 " <dataType>string</dataType>" \
181 " </stateVariable>" \
182 " <stateVariable sendEvents=\"no\">" \
183 " <name>A_ARG_TYPE_UpdateID</name>" \
184 " <dataType>ui4</dataType>" \
185 " </stateVariable>" \
186 " <stateVariable sendEvents=\"no\">" \
187 " <name>A_ARG_TYPE_TagValueList</name>" \
188 " <dataType>string</dataType>" \
189 " </stateVariable>" \
190 " <stateVariable sendEvents=\"no\">" \
191 " <name>A_ARG_TYPE_Result</name>" \
192 " <dataType>string</dataType>" \
193 " </stateVariable>" \
194 " <stateVariable sendEvents=\"no\">" \
195 " <name>SearchCapabilities</name>" \
196 " <dataType>string</dataType>" \
197 " </stateVariable>" \
198 " <stateVariable sendEvents=\"no\">" \
199 " <name>A_ARG_TYPE_Filter</name>" \
200 " <dataType>string</dataType>" \
201 " </stateVariable>" \
202 " </serviceStateTable>" \
203 "</scpd>"
204
205 #define CDS_DESCRIPTION_LEN strlen (CDS_DESCRIPTION)
206
207 #define CDS_LOCATION "/web/cds.xml"
208
209 #define CDS_SERVICE_ID "urn:upnp-org:serviceId:ContentDirectory"
210 #define CDS_SERVICE_TYPE "urn:schemas-upnp-org:service:ContentDirectory:1"
211
212 #endif /* CDS_H_ */