1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2020 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<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
17    <xs:complexType name="service">
18        <xs:attribute name="name"    type="xs:string" use="required"/>
19        <xs:attribute name="command" type="xs:string" use="required"/>
20    </xs:complexType>
21    <xs:complexType name="services">
22        <xs:sequence>
23            <xs:element name="service" type="service" minOccurs="0" maxOccurs="unbounded"/>
24        </xs:sequence>
25    </xs:complexType>
26    <xs:complexType name="systemLogs">
27        <xs:sequence>
28            <xs:element name="service" type="service" minOccurs="1" maxOccurs="1"/>
29        </xs:sequence>
30    </xs:complexType>
31    <xs:element name="dumpstateHalConfiguration">
32        <xs:complexType>
33            <xs:sequence>
34                <xs:element name="services"   type="services" minOccurs="1" maxOccurs="1"/>
35                <xs:element name="systemLogs" type="systemLogs" minOccurs="1" maxOccurs="1"/>
36            </xs:sequence>
37            <xs:attribute type="xs:float" name="version" use="required"/>
38        </xs:complexType>
39    </xs:element>
40</xs:schema>
41