aboutsummaryrefslogtreecommitdiff
path: root/addons/xbmc.python
diff options
context:
space:
mode:
authorFice <fice@arcor.de>2013-10-06 14:22:46 +0200
committerThomas Amland <thomas.amland@gmail.com>2015-03-02 10:57:48 +0100
commitb30c551b4769e3f53e091314ddf7fe8b042302ce (patch)
tree4b3d7bc3eeb33de7bc5e5531139af1766d69d4dc /addons/xbmc.python
parent295106877608238f7874040d21dc29e0b63d90e7 (diff)
[ADDONS] Context Menu Addons System
Diffstat (limited to 'addons/xbmc.python')
-rw-r--r--addons/xbmc.python/addon.xml1
-rw-r--r--addons/xbmc.python/contextitem.xsd29
2 files changed, 30 insertions, 0 deletions
diff --git a/addons/xbmc.python/addon.xml b/addons/xbmc.python/addon.xml
index 1eccd4284b..b5530fe74c 100644
--- a/addons/xbmc.python/addon.xml
+++ b/addons/xbmc.python/addon.xml
@@ -10,4 +10,5 @@
<extension-point id="weather" schema="script.xsd"/>
<extension-point id="library" schema="script.xsd"/>
<extension-point id="plugin" schema="pluginsource.xsd"/>
+ <extension-point id="context.item" schema="contextitem.xsd"/>
</addon>
diff --git a/addons/xbmc.python/contextitem.xsd b/addons/xbmc.python/contextitem.xsd
new file mode 100644
index 0000000000..3c7c671528
--- /dev/null
+++ b/addons/xbmc.python/contextitem.xsd
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="item">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="label" type="xs:string"/>
+ <xs:element name="visible" type="xs:string"/>
+ <xs:element name="parent" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="point" type="xs:string" use="required"/>
+ <xs:attribute name="id" type="simpleIdentifier"/>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="library" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:simpleType name="simpleIdentifier">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[^.]+"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
+