Add appdefined privilege feature
[platform/core/appfw/pkgmgr-info.git] / parser / manifest.xsd.ref
index 21370bd..a5eaa8e 100644 (file)
     <xs:enumeration value="capture"/>
      </xs:restriction>
   </xs:simpleType>
+  <xs:simpleType name="PrivilegeType">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="tpk"/>
+      <xs:enumeration value="wgt"/>
+    </xs:restriction>
+  </xs:simpleType>
 
   <xs:element name="author">
     <xs:complexType mixed="true">
       <xs:sequence>
         <xs:choice maxOccurs="unbounded" minOccurs="0">
           <xs:element ref="packages:privilege"/>
+          <xs:element ref="packages:appdefined-privilege"/>
         </xs:choice>
       </xs:sequence>
     </xs:complexType>
   </xs:element>
   <xs:element name="privilege">
+    <xs:complexType mixed="true">
+      <xs:attribute name="type" type="PrivilegeType"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="provides-appdefined-privileges">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:choice maxOccurs="unbounded" minOccurs="0">
+          <xs:element ref="packages:appdefined-privilege"/>
+        </xs:choice>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="appdefined-privilege">
+    <xs:complexType mixed="true">
+      <xs:attribute name="type" type="PrivilegeType"/>
+      <xs:attribute name="license" type="xs:string"/>
+    </xs:complexType>
   </xs:element>
   <xs:element name="font">
   </xs:element>
   </xs:element>
   <xs:element name="datacontrol">
   <xs:complexType>
+    <xs:sequence>
+      <xs:choice maxOccurs="unbounded" minOccurs="0">
+        <xs:element ref="packages:privilege"/>
+      </xs:choice>
+    </xs:sequence>
     <xs:attribute name="providerid" type="xs:string"/>
     <xs:attribute name="access" type="xs:string"/>
     <xs:attribute name="type" type="xs:string"/>