]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: rename uint8range/uint24range to uint8/uint24
authorLaine Stump <laine@laine.org>
Tue, 22 Mar 2016 16:00:40 +0000 (12:00 -0400)
committerLaine Stump <laine@laine.org>
Thu, 14 Apr 2016 18:00:33 +0000 (14:00 -0400)
nwfilter.rng defines uint16range and uint32range, but in a different
manner (it also allows a variable name as the value, rather than just
a decimal or hex number). I wanted to add uint16range to
basictypes.rng, but my desired definition was parallel to those for
uint8range and uint24range which are defined in basictypes.rng - they
*don't* allow a variable name for the value.

The simplest path to make everyone happy is to make the "plain"
versions in basictypes.rng have simpler names - "uint8", "uint16", and
"uint24". This patch renames uint8range and uint24range to uint8 and
uint24, while the next patch will add uint16.

docs/schemas/basictypes.rng
docs/schemas/domaincommon.rng
docs/schemas/networkcommon.rng
docs/schemas/nwfilter.rng

index 084d4033e7c579110232920d4186952a5a83bffa..cfbf40d67771814d97dd8d13e1a2e6577c816197 100644 (file)
@@ -32,7 +32,7 @@
     </data>
   </define>
 
-  <define name="uint8range">
+  <define name="uint8">
     <choice>
       <data type="string">
         <param name="pattern">0x[0-9a-fA-F]{1,2}</param>
@@ -43,7 +43,7 @@
       </data>
     </choice>
   </define>
-  <define name="uint24range">
+  <define name="uint24">
     <choice>
       <data type="string">
         <param name="pattern">0x[0-9a-fA-F]{1,6}</param>
index fa545261326dfb59c6aa8ae38c6d8adf638061c6..c6cdc81556129d377eade45ccd38f7c8a31e21fb 100644 (file)
               <element name="target">
                 <optional>
                   <attribute name='chassisNr'>
-                    <ref name='uint8range'/>
+                    <ref name='uint8'/>
                   </attribute>
                 </optional>
                 <optional>
                   <attribute name="chassis">
-                    <ref name='uint8range'/>
+                    <ref name='uint8'/>
                   </attribute>
                 </optional>
                 <optional>
                   <attribute name="port">
-                    <ref name='uint8range'/>
+                    <ref name='uint8'/>
                   </attribute>
                 </optional>
                 <empty/>
index 09691dcbd07019add44a81cce1d5f88f79d7f2f0..fb69f7c7120f8059fd8a36231c54fea4eca0a24a 100644 (file)
             <element name="parameters">
               <optional>
                 <attribute name="managerid">
-                  <ref name="uint8range"/>
+                  <ref name="uint8"/>
                 </attribute>
               </optional>
               <optional>
                 <attribute name="typeid">
-                  <ref name="uint24range"/>
+                  <ref name="uint24"/>
                 </attribute>
               </optional>
               <optional>
                 <attribute name="typeidversion">
-                  <ref name="uint8range"/>
+                  <ref name="uint8"/>
                 </attribute>
               </optional>
               <optional>
             <element name="parameters">
               <optional>
                 <attribute name="managerid">
-                  <ref name="uint8range"/>
+                  <ref name="uint8"/>
                 </attribute>
               </optional>
               <optional>
                 <attribute name="typeid">
-                  <ref name="uint24range"/>
+                  <ref name="uint24"/>
                 </attribute>
               </optional>
               <optional>
                 <attribute name="typeidversion">
-                  <ref name="uint8range"/>
+                  <ref name="uint8"/>
                 </attribute>
               </optional>
               <optional>
index 9df39c0a64a4c492889399b4926349fb03d81b5d..dbe6af76cd2919f9bc9d52b1891f8396bf258830 100644 (file)
     <interleave>
       <optional>
         <attribute name="type">
-          <ref name="uint8range"/>
+          <ref name="uint8"/>
         </attribute>
       </optional>
       <optional>
         <attribute name="code">
-          <ref name="uint8range"/>
+          <ref name="uint8"/>
         </attribute>
       </optional>
     </interleave>
     <interleave>
       <optional>
         <attribute name="type">
-          <ref name="uint8range"/>
+          <ref name="uint8"/>
         </attribute>
       </optional>
       <optional>
         <attribute name="typeend">
-          <ref name="uint8range"/>
+          <ref name="uint8"/>
         </attribute>
       </optional>
       <optional>
         <attribute name="code">
-          <ref name="uint8range"/>
+          <ref name="uint8"/>
         </attribute>
       </optional>
       <optional>
         <attribute name="codeend">
-          <ref name="uint8range"/>
+          <ref name="uint8"/>
         </attribute>
       </optional>
     </interleave>
   <define name="stp-attributes">
     <optional>
       <attribute name="type">
-        <ref name="uint8range"/>
+        <ref name="uint8"/>
       </attribute>
     </optional>
     <optional>
       <attribute name="flags">
-        <ref name="uint8range"/>
+        <ref name="uint8"/>
       </attribute>
     </optional>
     <optional>