125
|
1 /*
|
|
2 * cms.h : GeeXboX uShare Connection Management 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 CMS_H_
|
|
23 #define CMS_H_
|
|
24
|
|
25 #define CMS_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>GetCurrentConnectionInfo</name>" \
|
|
35 " <argumentList>" \
|
|
36 " <argument>" \
|
|
37 " <name>ConnectionID</name>" \
|
|
38 " <direction>in</direction>" \
|
|
39 " <relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>" \
|
|
40 " </argument>" \
|
|
41 " <argument>" \
|
|
42 " <name>RcsID</name>" \
|
|
43 " <direction>out</direction>" \
|
|
44 " <relatedStateVariable>A_ARG_TYPE_RcsID</relatedStateVariable>" \
|
|
45 " </argument>" \
|
|
46 " <argument>" \
|
|
47 " <name>AVTransportID</name>" \
|
|
48 " <direction>out</direction>" \
|
|
49 " <relatedStateVariable>A_ARG_TYPE_AVTransportID</relatedStateVariable>" \
|
|
50 " </argument>" \
|
|
51 " <argument>" \
|
|
52 " <name>ProtocolInfo</name>" \
|
|
53 " <direction>out</direction>" \
|
|
54 " <relatedStateVariable>A_ARG_TYPE_ProtocolInfo</relatedStateVariable>" \
|
|
55 " </argument>" \
|
|
56 " <argument>" \
|
|
57 " <name>PeerConnectionManager</name>" \
|
|
58 " <direction>out</direction>" \
|
|
59 " <relatedStateVariable>A_ARG_TYPE_ConnectionManager</relatedStateVariable>" \
|
|
60 " </argument>" \
|
|
61 " <argument>" \
|
|
62 " <name>PeerConnectionID</name>" \
|
|
63 " <direction>out</direction>" \
|
|
64 " <relatedStateVariable>A_ARG_TYPE_ConnectionID</relatedStateVariable>" \
|
|
65 " </argument>" \
|
|
66 " <argument>" \
|
|
67 " <name>Direction</name>" \
|
|
68 " <direction>out</direction>" \
|
|
69 " <relatedStateVariable>A_ARG_TYPE_Direction</relatedStateVariable>" \
|
|
70 " </argument>" \
|
|
71 " <argument>" \
|
|
72 " <name>Status</name>" \
|
|
73 " <direction>out</direction>" \
|
|
74 " <relatedStateVariable>A_ARG_TYPE_ConnectionStatus</relatedStateVariable>" \
|
|
75 " </argument>" \
|
|
76 " </argumentList>" \
|
|
77 " </action>" \
|
|
78 " <action>" \
|
|
79 " <name>GetProtocolInfo</name>" \
|
|
80 " <argumentList>" \
|
|
81 " <argument>" \
|
|
82 " <name>Source</name>" \
|
|
83 " <direction>out</direction>" \
|
|
84 " <relatedStateVariable>SourceProtocolInfo</relatedStateVariable>" \
|
|
85 " </argument>" \
|
|
86 " <argument>" \
|
|
87 " <name>Sink</name>" \
|
|
88 " <direction>out</direction>" \
|
|
89 " <relatedStateVariable>SinkProtocolInfo</relatedStateVariable>" \
|
|
90 " </argument>" \
|
|
91 " </argumentList>" \
|
|
92 " </action>" \
|
|
93 " <action>" \
|
|
94 " <name>GetCurrentConnectionIDs</name>" \
|
|
95 " <argumentList>" \
|
|
96 " <argument>" \
|
|
97 " <name>ConnectionIDs</name>" \
|
|
98 " <direction>out</direction>" \
|
|
99 " <relatedStateVariable>CurrentConnectionIDs</relatedStateVariable>" \
|
|
100 " </argument>" \
|
|
101 " </argumentList>" \
|
|
102 " </action>" \
|
|
103 " </actionList>" \
|
|
104 " <serviceStateTable>" \
|
|
105 " <stateVariable sendEvents=\"no\">" \
|
|
106 " <name>A_ARG_TYPE_ProtocolInfo</name>" \
|
|
107 " <dataType>string</dataType>" \
|
|
108 " </stateVariable>" \
|
|
109 " <stateVariable sendEvents=\"no\">" \
|
|
110 " <name>A_ARG_TYPE_ConnectionStatus</name>" \
|
|
111 " <dataType>string</dataType>" \
|
|
112 " <allowedValueList>" \
|
|
113 " <allowedValue>OK</allowedValue>" \
|
|
114 " <allowedValue>ContentFormatMismatch</allowedValue>" \
|
|
115 " <allowedValue>InsufficientBandwidth</allowedValue>" \
|
|
116 " <allowedValue>UnreliableChannel</allowedValue>" \
|
|
117 " <allowedValue>Unknown</allowedValue>" \
|
|
118 " </allowedValueList>" \
|
|
119 " </stateVariable>" \
|
|
120 " <stateVariable sendEvents=\"no\">" \
|
|
121 " <name>A_ARG_TYPE_AVTransportID</name>" \
|
|
122 " <dataType>i4</dataType>" \
|
|
123 " </stateVariable>" \
|
|
124 " <stateVariable sendEvents=\"no\">" \
|
|
125 " <name>A_ARG_TYPE_RcsID</name>" \
|
|
126 " <dataType>i4</dataType>" \
|
|
127 " </stateVariable>" \
|
|
128 " <stateVariable sendEvents=\"no\">" \
|
|
129 " <name>A_ARG_TYPE_ConnectionID</name>" \
|
|
130 " <dataType>i4</dataType>" \
|
|
131 " </stateVariable>" \
|
|
132 " <stateVariable sendEvents=\"no\">" \
|
|
133 " <name>A_ARG_TYPE_ConnectionManager</name>" \
|
|
134 " <dataType>string</dataType>" \
|
|
135 " </stateVariable>" \
|
|
136 " <stateVariable sendEvents=\"yes\">" \
|
|
137 " <name>SourceProtocolInfo</name>" \
|
|
138 " <dataType>string</dataType>" \
|
|
139 " </stateVariable>" \
|
|
140 " <stateVariable sendEvents=\"yes\">" \
|
|
141 " <name>SinkProtocolInfo</name>" \
|
|
142 " <dataType>string</dataType>" \
|
|
143 " </stateVariable>" \
|
|
144 " <stateVariable sendEvents=\"no\">" \
|
|
145 " <name>A_ARG_TYPE_Direction</name>" \
|
|
146 " <dataType>string</dataType>" \
|
|
147 " <allowedValueList>" \
|
|
148 " <allowedValue>Input</allowedValue>" \
|
|
149 " <allowedValue>Output</allowedValue>" \
|
|
150 " </allowedValueList>" \
|
|
151 " </stateVariable>" \
|
|
152 " <stateVariable sendEvents=\"yes\">" \
|
|
153 " <name>CurrentConnectionIDs</name>" \
|
|
154 " <dataType>string</dataType>" \
|
|
155 " </stateVariable>" \
|
|
156 " </serviceStateTable>" \
|
|
157 "</scpd>"
|
|
158
|
|
159 #define CMS_DESCRIPTION_LEN strlen (CMS_DESCRIPTION)
|
|
160
|
|
161 #define CMS_LOCATION "/web/cms.xml"
|
|
162
|
|
163 #define CMS_SERVICE_ID "urn:upnp-org:serviceId:ConnectionManager"
|
|
164 #define CMS_SERVICE_TYPE "urn:schemas-upnp-org:service:ConnectionManager:1"
|
|
165
|
|
166 #endif /* CMS_H_ */
|