diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-03-01 12:26:15 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-03-01 12:26:15 +0000 |
commit | 23aba672e7221e1a49a1e9662d4a40ca6d375bd2 (patch) | |
tree | 7c64d831ad583179e3aa5f191c95cace7d83fafe /tools/libxl/gentypes.py | |
parent | 53ec331a4b49bf45814be6a5a3b57a95392aaa1d (diff) | |
download | xen-23aba672e7221e1a49a1e9662d4a40ca6d375bd2.tar.gz xen-23aba672e7221e1a49a1e9662d4a40ca6d375bd2.tar.bz2 xen-23aba672e7221e1a49a1e9662d4a40ca6d375bd2.zip |
libxl: idl: generate KeyedUnion key member as part of the KeyedUnion
Rather than specifying it twice in the IDL.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/gentypes.py')
-rw-r--r-- | tools/libxl/gentypes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxl/gentypes.py b/tools/libxl/gentypes.py index 4a2d0cecca..a70c8d0f65 100644 --- a/tools/libxl/gentypes.py +++ b/tools/libxl/gentypes.py @@ -32,6 +32,9 @@ def libxl_C_type_define(ty, indent = ""): s += "} %s" % ty.typename elif isinstance(ty, idl.Aggregate): + if isinstance(ty, idl.KeyedUnion): + s += libxl_C_instance_of(ty.keyvar.type, ty.keyvar.name) + ";\n" + if ty.typename is None: s += "%s {\n" % ty.kind else: |