From nobody Mon Feb 9 21:24:02 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.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 (zoho.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=1573847177; cv=none; d=zoho.com; s=zohoarc; b=R5Qx41ycUKimbBWPsBPZGkKtJVIGMG3xUi8yCadrzqcULgL/Mf8onSK0Be6WUEA++W3u9m/Sk/leUC5YT3glF06vEPOOKwRuaZRsaQI/wM9xvkvMP1BmGQG5UaSlrLSdrjaXBcnE4Eq57dRrKZ+jjZo0Zfnd9sUFErem9XTWvkU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573847177; 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=iyC+VVEZzaQul+HekihAFvYJ69lEpQrq46FL+75QZa4=; b=NxCJkXZ/6ztcWuhvrv02t+aGFSC8A3NqJZUOseKGUN0Ud2/M+7cvOfp31/9ZtBo0XMONumTYEW60IfkvpeAD/TNrdnLT9jPVxYwkXAs4Z1hxAt85d+JmU5rht0BcPvnJhCIj4BZe5HagBfhqzHqePk2X2PLmjaAj3OjZ23mpCLg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.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 1573847177484238.0096901631623; Fri, 15 Nov 2019 11:46:17 -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 1iVhWy-0001Md-UT; Fri, 15 Nov 2019 19:45:20 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iVhWx-0001M2-GN for xen-devel@lists.xenproject.org; Fri, 15 Nov 2019 19:45:19 +0000 Received: from mail-qk1-x744.google.com (unknown [2607:f8b0:4864:20::744]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6b1c1076-07e0-11ea-9631-bc764e2007e4; Fri, 15 Nov 2019 19:45:04 +0000 (UTC) Received: by mail-qk1-x744.google.com with SMTP id 205so9066616qkk.1 for ; Fri, 15 Nov 2019 11:45:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 11:45:02 -0800 (PST) X-Inumbo-ID: 6b1c1076-07e0-11ea-9631-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=PCpc2PETu5vkVGi+//zexBJ1l4O8/+O3JExE14eM7Ho=; b=IrC0LATTrMi9aJ1MMpUzMoDXsw4g3zdVtQK7NaNidK0PrgMutoiF+1rsH4SEmV1HIy EoMvXavvCacxW6EFWYlPp2kFgHLLtY26QtDNfPL3dOOURjgmT3yTKZWUhlxLq9w74Y96 FWPkRswJGkCKQB4MqQiGm+8qGxQ3HAGtaPVykF3TzljqXplNw+sF/A6XVMyznAFEgWXt /DRkFq6Gn8Q/7NyoyooEOUK7vP9OPbi6T4O80i2k75ws4TJqKmQ/fISmHR83Vdo/M3bN sGrclF9DLe7jLOSyCjN93/Co4XdobnyXassueuqjPgOB+Mi4aRut4bNW0OyH4kpvJwOP EKUQ== 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=PCpc2PETu5vkVGi+//zexBJ1l4O8/+O3JExE14eM7Ho=; b=LBgIwGUCLIUHD0NUmYj2TgxQdbvcmHzxiWFxyHU1CwxMqqXIdM2ND6YnHcTU4b4mLI PYb38IpmBMQCWIhAeNq9Vq0itIlRM1inDtI4wTJLFaY5Yek9llWBEep8hjArtFdAv8ds /iMFyqcjqlLz1UcXG1VCbChS2mbWFy/I+YQiL8M4XCx7xuospTJHeye1drn9JsnJ+O5q xiFnVMy7OgJBEm1J7llAgQ06dgFTuwXXf/M5JMh083ALGMIy3WD3+iYWdDVhaI5fYi7N 5Q1lCwn+MkTqYabkkhjviOJcemrm+XRFtQUXtMkjdPXuob9G/2/+AmeGnbdo0KZEW/V2 AcLA== X-Gm-Message-State: APjAAAVnb0KyO6osdcIWWU5xKxRNNuxu5ODvOPFWmTehjN6/gRu+ccdZ Ud8NaUCqLXz1DKm2iX72SHwzS4xM X-Google-Smtp-Source: APXvYqxVHXPJrtKcvM5k9oh/7pawBVfW583Le6b9Hp7KwGbnvdbJKjwZwxlNSEbWc+/0D7aAG8407Q== X-Received: by 2002:a05:620a:12c9:: with SMTP id e9mr13531524qkl.97.1573847103198; Fri, 15 Nov 2019 11:45:03 -0800 (PST) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Fri, 15 Nov 2019 14:44:11 -0500 Message-Id: <9f5901687b1e8ac95b92fb0b9185344721c9e23d.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 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