aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-04-20 17:13:07 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-04-20 17:13:07 +0100
commit442ee1681a29f049c4c7f18ace9003bd266fbe9f (patch)
treefb6573c9abe14a85d985dc86b8041b2286025a03 /tools/python
parent7e68a38de41429c863576e941b21de7f026fb91b (diff)
downloadxen-442ee1681a29f049c4c7f18ace9003bd266fbe9f.tar.gz
xen-442ee1681a29f049c4c7f18ace9003bd266fbe9f.tar.bz2
xen-442ee1681a29f049c4c7f18ace9003bd266fbe9f.zip
tools: libxl: remove BitField type class from IDL
All usages are single bit BitFields, AKA booleans. In general we prefer to use simple structures (e.g. without packing or specific layouts) in the libxl API and take care of any require structure by marshalling within the library instead of expecting users to do so (e.g. the PCI device BDF is unpacked in the libxl API). Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/genwrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/genwrap.py b/tools/python/genwrap.py
index d707d4f011..ed92b35b7b 100644
--- a/tools/python/genwrap.py
+++ b/tools/python/genwrap.py
@@ -7,7 +7,7 @@ import libxltypes
(TYPE_BOOL, TYPE_INT, TYPE_UINT, TYPE_STRING) = range(4)
def py_type(ty):
- if ty == libxltypes.bool or isinstance(ty, libxltypes.BitField) and ty.width == 1:
+ if ty == libxltypes.bool:
return TYPE_BOOL
if isinstance(ty, libxltypes.Enumeration):
return TYPE_UINT