From patchwork Tue Dec 10 15:47:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11282867 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 4828F14BD for ; Tue, 10 Dec 2019 15:49:04 +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 24656206D5 for ; Tue, 10 Dec 2019 15:49:04 +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="O7cyzIDf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24656206D5 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 1iehkC-0002xW-9W; Tue, 10 Dec 2019 15:48:12 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iehkA-0002x2-Rm for xen-devel@lists.xenproject.org; Tue, 10 Dec 2019 15:48:10 +0000 X-Inumbo-ID: 6e5311f8-1b64-11ea-88e7-bc764e2007e4 Received: from mail-qv1-xf44.google.com (unknown [2607:f8b0:4864:20::f44]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6e5311f8-1b64-11ea-88e7-bc764e2007e4; Tue, 10 Dec 2019 15:47:55 +0000 (UTC) Received: by mail-qv1-xf44.google.com with SMTP id o18so4362118qvf.1 for ; Tue, 10 Dec 2019 07:47:55 -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=xJtsVD7v/eLGT0PYCbUK6OcDbHvosGa2K6bcDN+U4so=; b=O7cyzIDfXsW/cWNr3AOTOBJQFOUwuAHIo6SCquLuU0Ed9Utiebev++ixg6UV2rvbZ1 6mjoRsgSg2vCgm8IXp0/1mu5StUBtqTrABPgJPzrJreOlDVrTR+24iY+aAxV/eF9b1hI 6t7YuJkw4LUp+syVagqW2Vdvi1Z5QrSKNovOPY1fAILp7AmKs7uf3J6Ii89SDtR9sTGw kBeMgTN14aIXGF8+WjrylLX+K5aPXtQ8CLfUHaAvft0K+toAoDWZLAQxbK2YL482jdJK ewEGsOnH3Lj41efkJoZKTQemmEnIC9//aD8sf9RGoobcWcT8TXQY/DPW3QnqoodCw78i UCtQ== 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=xJtsVD7v/eLGT0PYCbUK6OcDbHvosGa2K6bcDN+U4so=; b=KlevWZ6rm2EJ6PGPaTCPacKHPGHk8y7Ig/6kLcx82/r7oUmJw5raM9bbsf2u5znDvB rnD1sF/aKsaj8kjZn+VOkteCFu0JMMFBWabYUoup877iFIMjsjfPIETC+6bgEltxbibG ia7i+7a6WvjQE4mgcJFhlU2PEZiwXmwpOpnWD1Bqfp0+9BDN1e39B4fADYrMhfMlB9Y6 B8DBBWe66w1yDKI+Bz0CMmJVifDbgGSq06AqcLqiPnacTONUXHafREjqhVoOQYWuNZD/ XPnRLjbcaCdhn4T1lD4rW4rffg75la2GbHbVJXtfCD8HGr+PFzYfdmtT0V5cUsD34OT2 h+yg== X-Gm-Message-State: APjAAAUJICtw45dccLXiApfKE8s2ScQZjHI/NU14S2ncGQU8Z4icIzvf t1XhlaWLSRjRNsLecz7ipvF1tR62 X-Google-Smtp-Source: APXvYqwRTEm2d+0xw17v2x9ep5VQowpww71DOu/n7kLiC49CxcatED5XEDSH21LEvvMi/V8cRJ5EVg== X-Received: by 2002:a05:6214:5ce:: with SMTP id t14mr4589643qvz.139.1575992874368; Tue, 10 Dec 2019 07:47:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 07:47:53 -0800 (PST) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Tue, 10 Dec 2019 10:47:19 -0500 Message-Id: <3e79f8024a55f673f31c1768df0f3e9676a0ae2f.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 04/22] golang/xenlight: define KeyValueList 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 KeyValueList as empty struct as there is currently no reason for this type to be available in the Go package. Implement fromC and toC functions as no-ops. Signed-off-by: Nick Rosbrook Reviewed-by: George Dunlap --- Changes in v2: - Re-define KeyValueList as empty struct, as it was decided this type probably shouldn't be exposed in the Go package. --- 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 8ac26e63f0..3edff18471 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -202,6 +202,16 @@ func (chwcap C.libxl_hwcap) toGo() (ghwcap Hwcap) { return } +// KeyValueList represents a libxl_key_value_list. +// +// Represented as an empty struct for now, as there is no +// apparent need for this type to be exposed through the +// Go package. +type KeyValueList struct{} + +func (kvl KeyValueList) fromC(ckvl *C.libxl_key_value_list) error { return nil } +func (kvl KeyValueList) toC() (ckvl C.libxl_key_value_list, err error) { return } + // typedef struct { // uint32_t size; /* number of bytes in map */ // uint8_t *map;