aboutsummaryrefslogtreecommitdiff
path: root/addons/xbmc.addon
diff options
context:
space:
mode:
Diffstat (limited to 'addons/xbmc.addon')
-rw-r--r--addons/xbmc.addon/metadata.xsd27
1 files changed, 25 insertions, 2 deletions
diff --git a/addons/xbmc.addon/metadata.xsd b/addons/xbmc.addon/metadata.xsd
index 639f4d828b..b38d08d2d8 100644
--- a/addons/xbmc.addon/metadata.xsd
+++ b/addons/xbmc.addon/metadata.xsd
@@ -8,8 +8,8 @@
<xs:element name="description" type="translatedString" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="disclaimer" type="translatedString" minOccurs="0"/>
<xs:element name="license" type="xs:string"/>
- <xs:element name="platform" type="xs:string" minOccurs="0"/>
- <xs:element name="supportedcontent" type="xs:string" minOccurs="0"/>
+ <xs:element name="platform" type="platformList" minOccurs="0"/>
+ <xs:element name="supportedcontent" type="contentList" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="point" type="xs:string" use="required"/>
<xs:attribute name="id" type="simpleIdentifier"/>
@@ -28,4 +28,27 @@
</xs:extension>
</xs:simpleContent>
</xs:complexType>
+ <xs:simpleType name="platformType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="linux"/>
+ <xs:enumeration value="osx"/>
+ <xs:enumeration value="wingl"/>
+ <xs:enumeration value="windx"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="platformList">
+ <xs:list itemType="platformType"/>
+ </xs:simpleType>
+ <xs:simpleType name="contentType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="albums"/>
+ <xs:enumeration value="artists"/>
+ <xs:enumeration value="movies"/>
+ <xs:enumeration value="tvshows"/>
+ <xs:enumeration value="musicvideos"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="contentList">
+ <xs:list itemType="contentType"/>
+ </xs:simpleType>
</xs:schema>