diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-07-14 13:22:36 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-07-14 13:22:36 +0100 |
commit | f5f648c46210811975bd8ba7552302d07f7fd1e2 (patch) | |
tree | 81b35147fb5456d92be2e04adbbb9cbf346b8acd /tools/libxl/gentypes.py | |
parent | bd7f7849f297065258f265a03812058d981ffcb4 (diff) | |
download | xen-f5f648c46210811975bd8ba7552302d07f7fd1e2.tar.gz xen-f5f648c46210811975bd8ba7552302d07f7fd1e2.tar.bz2 xen-f5f648c46210811975bd8ba7552302d07f7fd1e2.zip |
libxl: IDL: remove libxl_C_type_of
It's not really adding much...
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/gentypes.py')
-rw-r--r-- | tools/libxl/gentypes.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/libxl/gentypes.py b/tools/libxl/gentypes.py index 4d108f8421..d6db145f18 100644 --- a/tools/libxl/gentypes.py +++ b/tools/libxl/gentypes.py @@ -17,10 +17,7 @@ def format_comment(level, comment): s += "%s */" % indent s += "\n" return s - -def libxl_C_type_of(ty): - return ty.typename - + def libxl_C_instance_of(ty, instancename): if isinstance(ty, libxltypes.Aggregate) and ty.typename is None: if instancename is None: @@ -28,7 +25,7 @@ def libxl_C_instance_of(ty, instancename): else: return libxl_C_type_define(ty) + " " + instancename else: - return libxl_C_type_of(ty) + " " + instancename + return ty.typename + " " + instancename def libxl_C_type_define(ty, indent = ""): s = "" |