aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/gentypes.py
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/libxl/gentypes.py
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/libxl/gentypes.py')
-rw-r--r--tools/libxl/gentypes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/libxl/gentypes.py b/tools/libxl/gentypes.py
index 099a3919f2..b64ec0ccb2 100644
--- a/tools/libxl/gentypes.py
+++ b/tools/libxl/gentypes.py
@@ -22,9 +22,7 @@ def libxl_C_type_of(ty):
return ty.typename
def libxl_C_instance_of(ty, instancename):
- if isinstance(ty, libxltypes.BitField):
- return libxl_C_type_of(ty) + " " + instancename + ":%d" % ty.width
- elif isinstance(ty, libxltypes.Aggregate) and ty.typename is None:
+ if isinstance(ty, libxltypes.Aggregate) and ty.typename is None:
if instancename is None:
return libxl_C_type_define(ty)
else: