• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4         Licensed under the Apache License, Version 2.0 (the "License");
5         you may not use this file except in compliance with the License.
6         You may obtain a copy of the License at
7
8                    http://www.apache.org/licenses/LICENSE-2.0
9
10         Unless required by applicable law or agreed to in writing, software
11         distributed under the License is distributed on an "AS IS" BASIS,
12         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13         See the License for the specific language governing permissions and
14         limitations under the License.
15-->
16<!-- TODO: define a targetNamespace. Note that it will break retrocompatibility -->
17<xs:schema version="2.0"
18           elementFormDefault="qualified"
19           attributeFormDefault="unqualified"
20           xmlns:xs="http://www.w3.org/2001/XMLSchema">
21    <xs:element name="manifest">
22        <xs:complexType>
23            <xs:sequence>
24                <xs:element name="hal" type="hal" minOccurs="0" maxOccurs="unbounded"/>
25                <xs:element name="sepolicy" type="sepolicy" minOccurs="0"/>
26                <xs:element name="kernel" type="kernel" minOccurs="0"/>
27                <xs:element name="vndk" type="vndk" minOccurs="0" maxOccurs="unbounded"/>
28                <xs:element name="vendor-ndk" type="vendor-ndk" minOccurs="0" maxOccurs="unbounded"/>
29                <xs:element name="system-sdk" type="system-sdk" minOccurs="0"/>
30            </xs:sequence>
31            <xs:attribute name="version" type="xs:string" use="required"/>
32            <xs:attribute name="type" type="xs:string" use="required"/>
33            <xs:attribute name="target-level" type="xs:string"/>
34        </xs:complexType>
35    </xs:element>
36    <xs:complexType name="hal">
37        <xs:sequence>
38            <xs:element name="name" type="xs:string"/>
39            <xs:element name="transport">
40                <xs:complexType>
41                    <xs:simpleContent>
42                        <xs:extension base="xs:string">
43                            <xs:attribute name="arch" type="xs:string"/>
44                        </xs:extension>
45                    </xs:simpleContent>
46                </xs:complexType>
47            </xs:element>
48            <xs:element name="version" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
49            <xs:element name="interface" type="interface" minOccurs="0" maxOccurs="unbounded"/>
50            <xs:element name="fqname" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
51        </xs:sequence>
52        <xs:attribute name="format" type="xs:string"/>
53        <xs:attribute name="optional" type="xs:string"/>
54    </xs:complexType>
55    <xs:complexType name="interface">
56        <xs:sequence>
57            <xs:element name="name" type="xs:string"/>
58            <xs:element name="instance" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
59        </xs:sequence>
60    </xs:complexType>
61    <xs:complexType name="sepolicy">
62        <xs:sequence>
63            <xs:element name="version" type="xs:string"/>
64        </xs:sequence>
65    </xs:complexType>
66    <xs:complexType name="vndk">
67        <xs:sequence>
68            <xs:element name="version" type="xs:string"/>
69            <xs:element name="library" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
70        </xs:sequence>
71    </xs:complexType>
72    <xs:complexType name="vendor-ndk">
73        <xs:sequence>
74            <xs:element name="version" type="xs:string"/>
75            <xs:element name="library" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
76        </xs:sequence>
77    </xs:complexType>
78    <xs:complexType name="system-sdk">
79        <xs:sequence>
80            <xs:element name="version" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
81        </xs:sequence>
82    </xs:complexType>
83    <xs:complexType name="kernel">
84        <xs:sequence>
85            <xs:element name="config" minOccurs="0" maxOccurs="unbounded">
86                <xs:complexType>
87                    <xs:sequence>
88                        <xs:element name="key" type="xs:string"/>
89                        <xs:element name="value" type="xs:string"/>
90                    </xs:sequence>
91                </xs:complexType>
92            </xs:element>
93        </xs:sequence>
94        <xs:attribute name="version" type="xs:string"/>
95    </xs:complexType>
96</xs:schema>
97