125
|
1 /*
|
|
2 * msr.h : GeeXboX uShare Microsoft Registrar Service header.
|
|
3 * Originally developped for the GeeXboX project.
|
|
4 * Copyright (C) 2006 Benjamin Zores <ben@geexbox.org>
|
|
5 *
|
|
6 * This program is free software; you can redistribute it and/or modify
|
|
7 * it under the terms of the GNU General Public License as published by
|
|
8 * the Free Software Foundation; either version 2 of the License, or
|
|
9 * (at your option) any later version.
|
|
10 *
|
|
11 * This program is distributed in the hope that it will be useful,
|
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 * GNU Library General Public License for more details.
|
|
15 *
|
|
16 * You should have received a copy of the GNU General Public License along
|
|
17 * with this program; if not, write to the Free Software Foundation,
|
|
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
19 */
|
|
20
|
|
21 #ifndef MSR_H_
|
|
22 #define MSR_H_
|
|
23
|
|
24 #define MSR_DESCRIPTION \
|
|
25 "<?xml version=\"1.0\" encoding=\"utf-8\"?>" \
|
|
26 "<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">" \
|
|
27 "<specVersion>" \
|
|
28 " <major>1</major>" \
|
|
29 " <minor>0</minor>" \
|
|
30 "</specVersion>" \
|
|
31 "<actionList>" \
|
|
32 " <action>" \
|
|
33 " <name>IsAuthorized</name>" \
|
|
34 " <argumentList>" \
|
|
35 " <argument>" \
|
|
36 " <name>DeviceID</name>" \
|
|
37 " <direction>in</direction>" \
|
|
38 " <relatedStateVariable>A_ARG_TYPE_DeviceID</relatedStateVariable>" \
|
|
39 " </argument>" \
|
|
40 " <argument>" \
|
|
41 " <name>Result</name>" \
|
|
42 " <direction>out</direction>" \
|
|
43 " <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>" \
|
|
44 " </argument>" \
|
|
45 " </argumentList>" \
|
|
46 " </action>" \
|
|
47 " <action>" \
|
|
48 " <name>RegisterDevice</name>" \
|
|
49 " <argumentList>" \
|
|
50 " <argument>" \
|
|
51 " <name>RegistrationReqMsg</name>" \
|
|
52 " <direction>in</direction>" \
|
|
53 " <relatedStateVariable>A_ARG_TYPE_RegistrationReqMsg</relatedStateVariable>" \
|
|
54 " </argument>" \
|
|
55 " <argument>" \
|
|
56 " <name>RegistrationRespMsg</name>" \
|
|
57 " <direction>out</direction>" \
|
|
58 " <relatedStateVariable>A_ARG_TYPE_RegistrationRespMsg</relatedStateVariable>" \
|
|
59 " </argument>" \
|
|
60 " </argumentList>" \
|
|
61 " </action>" \
|
|
62 " <action>" \
|
|
63 " <name>IsValidated</name>" \
|
|
64 " <argumentList>" \
|
|
65 " <argument>" \
|
|
66 " <name>DeviceID</name>" \
|
|
67 " <direction>in</direction>" \
|
|
68 " <relatedStateVariable>A_ARG_TYPE_DeviceID</relatedStateVariable>" \
|
|
69 " </argument>" \
|
|
70 " <argument>" \
|
|
71 " <name>Result</name>" \
|
|
72 " <direction>out</direction>" \
|
|
73 " <relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable>" \
|
|
74 " </argument>" \
|
|
75 " </argumentList>" \
|
|
76 " </action>" \
|
|
77 "</actionList>" \
|
|
78 "<serviceStateTable>" \
|
|
79 " <stateVariable sendEvents=\"no\">" \
|
|
80 " <name>A_ARG_TYPE_DeviceID</name>" \
|
|
81 " <dataType>string</dataType>" \
|
|
82 " </stateVariable>" \
|
|
83 " <stateVariable sendEvents=\"no\">" \
|
|
84 " <name>A_ARG_TYPE_Result</name>" \
|
|
85 " <dataType>int</dataType>" \
|
|
86 " </stateVariable>" \
|
|
87 " <stateVariable sendEvents=\"no\">" \
|
|
88 " <name>A_ARG_TYPE_RegistrationReqMsg</name>" \
|
|
89 " <dataType>bin.base64</dataType>" \
|
|
90 " </stateVariable>" \
|
|
91 " <stateVariable sendEvents=\"no\">" \
|
|
92 " <name>A_ARG_TYPE_RegistrationRespMsg</name>" \
|
|
93 " <dataType>bin.base64</dataType>" \
|
|
94 " </stateVariable>" \
|
|
95 " <stateVariable sendEvents=\"no\">" \
|
|
96 " <name>AuthorizationGrantedUpdateID</name>" \
|
|
97 " <dataType>ui4</dataType>" \
|
|
98 " </stateVariable>" \
|
|
99 " <stateVariable sendEvents=\"no\">" \
|
|
100 " <name>AuthorizationDeniedUpdateID</name>" \
|
|
101 " <dataType>ui4</dataType>" \
|
|
102 " </stateVariable>" \
|
|
103 " <stateVariable sendEvents=\"no\">" \
|
|
104 " <name>ValidationSucceededUpdateID</name>" \
|
|
105 " <dataType>ui4</dataType>" \
|
|
106 " </stateVariable>" \
|
|
107 " <stateVariable sendEvents=\"no\">" \
|
|
108 " <name>ValidationRevokedUpdateID</name>" \
|
|
109 " <dataType>ui4</dataType>" \
|
|
110 " </stateVariable>" \
|
|
111 "</serviceStateTable>" \
|
|
112 "</scpd>"
|
|
113
|
|
114 #define MSR_DESCRIPTION_LEN strlen (MSR_DESCRIPTION)
|
|
115
|
|
116 #define MSR_LOCATION "/web/msr.xml"
|
|
117
|
|
118 #define MSR_SERVICE_ID "urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar"
|
|
119 #define MSR_SERVICE_TYPE "urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1"
|
|
120
|
|
121 #endif /* MSR_H_ */
|