]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: new basic type - uint16
authorLaine Stump <laine@laine.org>
Tue, 22 Mar 2016 16:10:16 +0000 (12:10 -0400)
committerLaine Stump <laine@laine.org>
Thu, 14 Apr 2016 18:00:33 +0000 (14:00 -0400)
This is a number between 0 and 65535 (or 0x0000 - 0xffff if specified
in hexadecimal).

docs/schemas/basictypes.rng

index cfbf40d67771814d97dd8d13e1a2e6577c816197..64babaff75c59d388a6ec10afcb9af1efc038eff 100644 (file)
       </data>
     </choice>
   </define>
+  <define name="uint16">
+    <choice>
+      <data type="string">
+        <param name="pattern">(0x)?[0-9a-fA-F]{1,4}</param>
+      </data>
+      <data type='int'>
+        <param name="minInclusive">0</param>
+        <param name="maxInclusive">65535</param>
+      </data>
+    </choice>
+  </define>
   <define name="uint24">
     <choice>
       <data type="string">