diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-04-20 17:13:07 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-04-20 17:13:07 +0100 |
commit | 442ee1681a29f049c4c7f18ace9003bd266fbe9f (patch) | |
tree | fb6573c9abe14a85d985dc86b8041b2286025a03 /tools/python | |
parent | 7e68a38de41429c863576e941b21de7f026fb91b (diff) | |
download | xen-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.py | 2 |
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 |