configure: Add --with-extra flag to allow setting the extra version string.
[libguestfs.git] / inspector / virt-inspector.rng
1 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
2   <!-- -*- xml -*-
3   This is a RELAX NG schema for the output of 'virt-inspector'.
4
5   To validate an existing document against this schema, you can
6   use xmllint, like this:
7
8     virt-inspector -d Foo > output.xml
9     xmllint - -noout - -relaxng virt-inspector.rng output.xml
10
11   (Note that because of limitations of XML, I have had to put spaces
12   between double dashes in the above code.  Those spaces should not
13   be there in what you type on the command line).
14
15   Written by Richard W.M. Jones, with a little help from Daniel
16   Veillard.
17
18   This file can be freely copied and modified without restrictions.
19   -->
20   <start>
21     <element name="operatingsystems">
22       <oneOrMore>
23         <element name="operatingsystem">
24           <interleave>
25
26             <optional><element name="root"><text/></element></optional>
27             <element name="name">
28               <choice>
29                 <value>linux</value>
30                 <value>windows</value>
31               </choice>
32             </element>
33             <optional><element name="arch"><text/></element></optional>
34             <optional><element name="distro"><text/></element></optional>
35             <optional><element name="product_name"><text/></element></optional>
36             <optional><element name="product_variant"><text/></element></optional>
37             <element name="major_version"><text/></element>
38             <element name="minor_version"><text/></element>
39             <optional><element name="windows_systemroot"><text/></element></optional>
40             <optional><element name="windows_current_control_set"><text/></element></optional>
41             <optional><element name="package_format"><text/></element></optional>
42             <optional><element name="package_management"><text/></element></optional>
43             <optional><element name="hostname"><text/></element></optional>
44             <optional><element name="format"><text/></element></optional>
45             <optional><element name="live"><empty/></element></optional>
46             <optional><element name="netinst"><empty/></element></optional>
47             <optional><element name="multipart"><empty/></element></optional>
48
49             <ref name="mountpoints"/>
50             <ref name="filesystems"/>
51             <optional><ref name="drive_mappings"/></optional>
52             <optional><ref name="applications"/></optional>
53
54           </interleave>
55         </element>
56       </oneOrMore>
57     </element>
58   </start>
59
60   <!-- how filesystems are mounted on mount points -->
61   <define name="mountpoints">
62     <element name="mountpoints">
63       <oneOrMore>
64         <element name="mountpoint">
65           <attribute name="dev"><text/></attribute>
66           <text/>
67         </element>
68       </oneOrMore>
69     </element>
70   </define>
71
72   <!-- filesystems detected -->
73   <define name="filesystems">
74     <element name="filesystems">
75       <oneOrMore>
76         <element name="filesystem">
77           <attribute name="dev"><text/></attribute>
78           <interleave>
79             <optional><element name="type"><text/></element></optional>
80             <optional><element name="label"><text/></element></optional>
81             <optional><element name="uuid"><text/></element></optional>
82           </interleave>
83         </element>
84       </oneOrMore>
85     </element>
86   </define>
87
88   <!-- drive mappings (for Windows) -->
89   <define name="drive_mappings">
90     <element name="drive_mappings">
91       <oneOrMore>
92         <element name="drive_mapping">
93           <attribute name="name"><text/></attribute>
94           <text/>
95         </element>
96       </oneOrMore>
97     </element>
98   </define>
99
100   <!-- applications installed -->
101   <define name="applications">
102     <element name="applications">
103       <zeroOrMore>
104         <element name="application">
105           <element name="name"><text/></element>
106           <optional><element name="display_name"><text/></element></optional>
107           <optional><element name="epoch"><text/></element></optional>
108           <optional><element name="version"><text/></element></optional>
109           <optional><element name="release"><text/></element></optional>
110           <optional><element name="install_path"><text/></element></optional>
111           <optional><element name="publisher"><text/></element></optional>
112           <optional><element name="url"><text/></element></optional>
113           <optional><element name="source_package"><text/></element></optional>
114           <optional><element name="summary"><text/></element></optional>
115           <optional><element name="description"><text/></element></optional>
116         </element>
117       </zeroOrMore>
118     </element>
119   </define>
120
121 </grammar>