From patchwork Tue Dec 10 15:47:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11282879 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E1FD138C for ; Tue, 10 Dec 2019 15:49:26 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EEBB7206D5 for ; Tue, 10 Dec 2019 15:49:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lc5cvUek" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEBB7206D5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iehkb-0003C2-2c; Tue, 10 Dec 2019 15:48:37 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iehkZ-0003BG-S9 for xen-devel@lists.xenproject.org; Tue, 10 Dec 2019 15:48:35 +0000 X-Inumbo-ID: 72036a14-1b64-11ea-b6f1-bc764e2007e4 Received: from mail-qv1-xf43.google.com (unknown [2607:f8b0:4864:20::f43]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 72036a14-1b64-11ea-b6f1-bc764e2007e4; Tue, 10 Dec 2019 15:48:01 +0000 (UTC) Received: by mail-qv1-xf43.google.com with SMTP id b18so4361473qvy.3 for ; Tue, 10 Dec 2019 07:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7XDtT+R+j+Gort2OZw6NF6IRipFP5JGZB9Hq2a/P3nk=; b=Lc5cvUekzkyLziO9fb5pfZnbiBbOH+gLF8yk6gu32Y682jmjszG2KeVLFI01AMs7MW e9zl88qYRoC7dLqHyng3vjm+RARX7T9cp+w8hWbP9kAUIdUytjucIMSiaMHkA/26iM6k vnG1qSMN2bbDIRnXnbURRP0+qR2fpEDCi9zeeQbLZAyvoZKLAOoikMPPu//Hn3gNDOqP WFGmxqHVUtvVy2tfHfT0cgy+nwWGdIIULtYp2jqYUzFrSDS8P5sQjO/gWOGfoPZ3mUkU Yd5LOgGX6Xgu+NqMc6XbUC3Z8WgGLIyc073eRisPVkLH2Xo3LIlul9G7/qMNr0R3T+Kx Ib1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7XDtT+R+j+Gort2OZw6NF6IRipFP5JGZB9Hq2a/P3nk=; b=h+PoqQgYDr834UVWFFy5KqE9SN05vYbyUeEbubVXW7qwvkp39cgyg3jWlq2m6CxIHl rpSEbRlmKD2aR6m6nsowXtyI2xFDpkWRqh3kb5vkAw+LmdMsJ1d6gDoDYYH0Bo1Glbus dh7lKI7A7Q2W4UakgYI1m0oYhDqnb+46JSmRKfNEX9OGMc1BTfoSPvjjZjvFFhngbX/G RlNNBgvTaGdVyu7aWsVeL4Wyv30J3NgQCmdONB9kqc2+Y6EQ1uyl4fPgIXC7+RzF8Puz evBkviQWltrjCYQhWPVT6t++dsIg2BY+Mi69bOrxmL2Pj7c8DioLuoodRKJlZwbEMDHF MxYA== X-Gm-Message-State: APjAAAXdPrsg6RXN8NqmO2P8ZcYu3xpAFdQ4uFpkBcn8HTzsnOZKzVqg j+I7Gafg/Ljd0f4bWAqgIg7kOfsv X-Google-Smtp-Source: APXvYqyVSYwvynQbLNatqp0j54rTE7mMPz8nZCukOyzPs1xZO8BdIO9pt0+fZQMlKrTxN9Tw9kyvdw== X-Received: by 2002:a05:6214:5ac:: with SMTP id by12mr28750820qvb.74.1575992880505; Tue, 10 Dec 2019 07:48:00 -0800 (PST) Received: from five.crux.rad.ainfosec.com (209-217-208-226.northland.net. [209.217.208.226]) by smtp.googlemail.com with ESMTPSA id m29sm1247848qtf.1.2019.12.10.07.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 07:47:59 -0800 (PST) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Tue, 10 Dec 2019 10:47:24 -0500 Message-Id: <82d9e6cb433d40ceb490a49d0aaafb6ec00bda06.1575990937.git.rosbrookn@ainfosec.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v3 09/22] golang/xenlight: define EvLink builtin as empty struct X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Nick Rosbrook , Ian Jackson , kerriganb@ainfosec.com, George Dunlap , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Nick Rosbrook Define EvLink as empty struct as there is currently no reason the internal of this type should be used in Go. Implement fromC and toC functions as no-ops. Signed-off-by: Nick Rosbrook Reviewed-by: George Dunlap --- tools/golang/xenlight/xenlight.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/golang/xenlight/xenlight.go b/tools/golang/xenlight/xenlight.go index 6c3868cd69..c1d9fe85fd 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -235,6 +235,16 @@ func (mvg *MsVmGenid) toC() (C.libxl_ms_vm_genid, error) { return cmvg, nil } +// EvLink represents a libxl_ev_link. +// +// Represented as an empty struct for now, as there is no +// apparent need for the internals of this type to be exposed +// through the Go package. +type EvLink struct{} + +func (el *EvLink) fromC(cel *C.libxl_ev_link) error { return nil } +func (el *EvLink) toC() (cel C.libxl_ev_link, err error) { return } + type Context struct { ctx *C.libxl_ctx logger *C.xentoollog_logger_stdiostream