From patchwork Fri Nov 15 19:44:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11247035 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 E216E1393 for ; Fri, 15 Nov 2019 19:46:55 +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 BED6F2073A for ; Fri, 15 Nov 2019 19:46:55 +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="CuaLg6r+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BED6F2073A 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 1iVhXN-0001bm-Ps; Fri, 15 Nov 2019 19:45:45 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iVhXM-0001aq-H4 for xen-devel@lists.xenproject.org; Fri, 15 Nov 2019 19:45:44 +0000 X-Inumbo-ID: 6ea6e856-07e0-11ea-984a-bc764e2007e4 Received: from mail-qt1-x843.google.com (unknown [2607:f8b0:4864:20::843]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6ea6e856-07e0-11ea-984a-bc764e2007e4; Fri, 15 Nov 2019 19:45:09 +0000 (UTC) Received: by mail-qt1-x843.google.com with SMTP id g50so12019001qtb.4 for ; Fri, 15 Nov 2019 11:45:09 -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=yIKE28IiCJePAebvr71To/XfB6LztVzOY2vbjyqk3z4=; b=CuaLg6r+bTujubNErxZLKyRvtZbIPUl8+b17QmVXbM0MynzIy8WlHveySxmSUTXwns Nz37Tm9FQGyMcfZiYMLB9UmJkfQF71aeyf2kCwVQvMJtL10KfSynvmD8Fw4gING2A/Zu 0+QUg5InLo/KuvSn0VjQ6hPAYTdhXy9klYtcas9euG6EkJy3P0+ammqjPYKZS0S3Y9hH 2hPoeX25GEbjH/XFPiNg35wxqhXh+SOk/hx1NBlXxWRTj+tLKGa2LGLprD7QNb7x7jRn NnP6x80mPyq5MKmfwNo3WUeK7XiumKmftmgFYmVx8JFbFn7ZRWmJKtHCtKyNE7a4QCAd LA3w== 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=yIKE28IiCJePAebvr71To/XfB6LztVzOY2vbjyqk3z4=; b=AegV5pLTlGqA49S5DKbqXPbhKGIPXkQJyGOwkTjQCFeakSQ/bYs0l6bPgAIKddH97T vdUVO/nNRhwGee4j/o4xYIZ50a1W46MzKDd6Rc9cdMSkdbOThlevvkwo9gmI1tK4QlKa Gh/YHYMI+iOtlUIszdMMVuSjBGhxhFnIhTuFku9mWX0yva6oGnYajztregy7ov+oGt68 /3r6eJaObkekGV9eZsJs1yDXYtB96LEIRa19UF1GF4mikpCeOLKGetcpxafC/wLvfpX3 R+ESCIn14F0TaZu41mu68lfKmWNEBiabjFPnYzCb89Utkra07MvsSL+41+35ftwe353H FpzA== X-Gm-Message-State: APjAAAWrFpSrz34b3vwQs0QM8BbfY2bVewChBjn7S6KkW1X9YRiJspzB C2tjspLtj6UM1Q7JobAXJ5WvQNDo X-Google-Smtp-Source: APXvYqzPeul66xhKuVn3nB2zDBbjXNf2YxW/20bUKwdHivXWe6jY43iTXuvtLEo3k67Pxdx7z8vnIw== X-Received: by 2002:ac8:289d:: with SMTP id i29mr16060038qti.24.1573847109214; Fri, 15 Nov 2019 11:45:09 -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 y10sm4649679qkb.55.2019.11.15.11.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 11:45:08 -0800 (PST) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Fri, 15 Nov 2019 14:44:16 -0500 Message-Id: <20897c448928542edca3493e54c589611dd81948.1573840474.git.rosbrookn@ainfosec.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2 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 108b50124a..d57f780116 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -239,6 +239,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