From: David Scott Subject: [PATCH v4 1/3] libxl IDL: the name of a KeyedUnion descriminator need not be 'type' Date: Tue, 22 Jul 2014 16:05:18 +0100 Message-ID: <1406041520-561-2-git-send-email-dave.scott@citrix.com> References: <1403512141-12283-1-git-send-email-dave.scott@citrix.com> <1406041520-561-1-git-send-email-dave.scott@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X9bdQ-00057f-FZ for xen-devel@lists.xenproject.org; Tue, 22 Jul 2014 15:05:44 +0000 In-Reply-To: <1406041520-561-1-git-send-email-dave.scott@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: ian.jackson@eu.citrix.com, David Scott , wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: David Scott --- tools/libxl/gentypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/gentypes.py b/tools/libxl/gentypes.py index 4b0c996..3e73821 100644 --- a/tools/libxl/gentypes.py +++ b/tools/libxl/gentypes.py @@ -440,7 +440,7 @@ def libxl_C_type_parse_json(ty, w, v, indent = " ", parent = None, discrimina (f.type.keyvar.name + "." + x.name, w) s += " if (x) {\n" (nparent, fexpr) = ty.member(v, f.type.keyvar, parent is None) - s += " %s_init_type(%s, %s);\n" % (ty.typename, v, x.enumname) + s += " %s_init_%s(%s, %s);\n" % (ty.typename, f.type.keyvar.name, v, x.enumname) (nparent,fexpr) = ty.member(v, f, parent is None) s += libxl_C_type_parse_json(f.type, "x", fexpr, " ", nparent, x.enumname) s += " }\n" -- 1.7.10.4