diff --git a/docs/apibuild.py b/docs/apibuild.py
index 3ef5d0f554..9e04871220 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -2117,12 +2117,22 @@ class docBuilder:
self.modulename_file(id.header)))
if id.info is not None:
info = id.info
+ valhex = ""
if info[0] is not None and info[0] != '':
try:
val = eval(info[0])
+ valhex = hex(val)
except:
val = info[0]
output.write(" value='%s'" % (val))
+
+ if valhex != "":
+ output.write(" value_hex='%s'" % (valhex))
+
+ m = re.match("\(?1<<(\d+)\)?", info[0])
+ if m:
+ output.write(" value_bitshift='%s'" % (m.group(1)))
+
if info[2] is not None and info[2] != '':
output.write(" type='%s'" % info[2])
if info[1] is not None and info[1] != '':
diff --git a/docs/libvirt.css b/docs/libvirt.css
index e590b33cfb..c5fe27fa3f 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -537,3 +537,7 @@ dl.mail dt a:hover {
color: rgb(255, 230, 0);
text-decoration: none;
}
+
+td.enumvalue {
+ white-space: nowrap;
+}
diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index 8d4c032c03..c808fe5ff8 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -288,6 +288,24 @@
+
+
+
+
+
+
+ (
+
+
+
+
+ ; 1 <<
+
+
+ )
+
+
+
@@ -306,7 +324,7 @@
= |
- |
+ |
|
- |
+ |