[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 05 of 10] libxl: IDL: remove libxl_C_type_of
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1308845928 -3600 # Node ID 2b91546fb417458d3fa29da85aed44bddb91854f # Parent 34279f2359cbaaef7c16287e023cae1b023f02d3 libxl: IDL: remove libxl_C_type_of It's not really adding much... Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> diff -r 34279f2359cb -r 2b91546fb417 tools/libxl/gentypes.py --- a/tools/libxl/gentypes.py Thu Jun 23 17:18:47 2011 +0100 +++ b/tools/libxl/gentypes.py Thu Jun 23 17:18:48 2011 +0100 @@ -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 = "" _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |