From nobody Mon Feb 9 03:20:00 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1575992924; cv=none; d=zohomail.com; s=zohoarc; b=af1cj2DIWe39rbYON/aCFN6vIoDNxDkpYuNDdMEAMmrlyZyjzitprdo+58b0CSpOGiOCjTKXV3419DaFZcw6SR1XqryH8ftFd9WGWMRZhsiP6DukN3vNwX537lPesHgab5pIvhPjXTecNjzpFyZDpbYbcO1iH+j5t+5/EcxgMis= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575992924; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6gwGOOoDCg/c55Hv0KV0QBjRlwT+uIPhufNp8WAG54k=; b=U92L5VTZ0zABVtYnKeNOApQz3wjdVF/yqeWUk8W7CQvdt2N2UYJoJk56yiYJOM3ti6vguJp6gJ5kNsFEJ4OOaZoLfqzXD+jyUvGSFQKHMJ6sKabhTU6oLithmP37PBucISxCgpMHwDyOdy/TIn0oRYRPPu5rETGx5J9kCU7LvXU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1575992924653545.6002470665343; Tue, 10 Dec 2019 07:48:44 -0800 (PST) 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 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) 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) X-Inumbo-ID: 6e5311f8-1b64-11ea-88e7-bc764e2007e4 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) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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/xenl= ight.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 } =20 +// 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 { r= eturn nil } +func (kvl KeyValueList) toC() (ckvl C.libxl_key_value_list, err error) { r= eturn } + // typedef struct { // uint32_t size; /* number of bytes in map */ // uint8_t *map; --=20 2.19.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel