From patchwork Fri Nov 15 19:44:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Rosbrook X-Patchwork-Id: 11247021 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 E25C21393 for ; Fri, 15 Nov 2019 19:46: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 BEE252073A for ; Fri, 15 Nov 2019 19:46:26 +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="IrC0LATT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BEE252073A 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 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 X-Inumbo-ID: 6b1c1076-07e0-11ea-9631-bc764e2007e4 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) 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) 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) 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 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;