[PATCH 03/15] schema: new basic type - uint16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a number between 0 and 65535 (or 0x0000 - 0xffff if specified
in hexadecimal).
---
 docs/schemas/basictypes.rng | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/docs/schemas/basictypes.rng b/docs/schemas/basictypes.rng
index cfbf40d..64babaf 100644
--- a/docs/schemas/basictypes.rng
+++ b/docs/schemas/basictypes.rng
@@ -43,6 +43,17 @@
       </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">
-- 
2.5.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]