aboutsummaryrefslogtreecommitdiff
path: root/addons/xbmc.python
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-05-28 03:09:24 +0000
committerjmarshallnz <jmarshallnz@svn>2010-05-28 03:09:24 +0000
commitfa2b463a7be83d3747ddcdfb33f201502217ecbd (patch)
tree391aa9e7725bc67864f07881f449dfa579894dcb /addons/xbmc.python
parenta8af180d6beaef72e146be5318189dac5fb2c121 (diff)
cleanup: move pluginsource <provides> tag reading to use xs:list and put it into the constructor rather than having it external
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30627 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/xbmc.python')
-rw-r--r--addons/xbmc.python/pluginsource.xsd16
1 files changed, 13 insertions, 3 deletions
diff --git a/addons/xbmc.python/pluginsource.xsd b/addons/xbmc.python/pluginsource.xsd
index 9a8e29b473..9907324cd4 100644
--- a/addons/xbmc.python/pluginsource.xsd
+++ b/addons/xbmc.python/pluginsource.xsd
@@ -3,9 +3,7 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="extension">
<xs:complexType>
- <xs:sequence>
- <xs:element maxOccurs="unbounded" ref="content"/>
- </xs:sequence>
+ <xs:element name="provides" type="providesList"/>
<xs:attribute name="point" type="xs:string" use="required"/>
<xs:attribute name="id" type="simpleIdentifier"/>
<xs:attribute name="name" type="xs:string"/>
@@ -21,5 +19,17 @@
<xs:pattern value="[^.]+"/>
</xs:restriction>
</xs:simpleType>
+ <xs:simpleType name="providesType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="audio"/>
+ <xs:enumeration value="image"/>
+ <xs:enumeration value="executeable"/>
+ <xs:enumeration value="video"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="providesList">
+ <xs:list itemType="providesType"/>
+ </xs:simpleType>
+
</xs:schema>