From patchwork Mon Apr 15 21:26:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 162281 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3422327jan; Mon, 15 Apr 2019 14:26:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh+P6xNsvxTC11HfqkSVARPZWkdaFfsJyZ5+oNsnxesHdFfvjYp7HldHWV6fw8SkfD270G X-Received: by 2002:a0c:c950:: with SMTP id v16mr63919064qvj.204.1555363617283; Mon, 15 Apr 2019 14:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555363617; cv=none; d=google.com; s=arc-20160816; b=F9IukFZiXQSTI38PVQHQHgm3IRjjqOeEsl7omLeW4CxG+aSaxbZk8OzX8y1LgchUky Tb3809tJxGwQ3AfF5quDof3QORYPcEnSl70Tnh5suQWp1fXXEOrUqm77nfmprkvBIVjX QQy6nkBzsoJdq4NAhNIWXhQxV7vXRJtcQxgIl/2gWGLX/PRyk0fsngWkjUZoYTGhxNbr SAyX8hxpiym7118R+Yd21eCP6kW10472jWCofKBIzvCNe3LLFn6gRsjX+j8lk1xS2fRE K/fp5f2mT3xtRT9C0pqPXE2XCX5CBs90xsCPn4E1aBOEQaCeF68GWTcOAZ2BtKfge+6y 2O8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:delivered-to; bh=DaidNGrXNFzwNrGOlC3qLNDJ0rThqivNqywKLtmpPXE=; b=kyO1DuodtvBieUbOKRjfWpUOxo+//tIkEyg5ldcKCJkkCWIIwgHiOpqu8GRiCcOBHo eEsOq5btdk+vLVSjxTDTYI1gt7cw5oQv8o2smFe9U91JxMGz9iE/N7uX6J3baROIKYtD QjRj53xNK27qYHmKFAx5SvjI7muF3i2bB/GSuV78fxMuzyClFYG4TcsY9HMcQ+3MpYDx SfbKKajP/PTKIupuPI2vbI5kRpjOc9eejimxNKeIGOt9q01fxRUoVo0n5M6OUwIw0zYX Y6Jb2NSERd1y/xXUmH1tJ1RLaUeswXmw2EqbdFWu89Rvq2EpU68F/HzCpvsWSf2gljIh ARuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id b194si3406566qkg.58.2019.04.15.14.26.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 14:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C0ACC307D91E; Mon, 15 Apr 2019 21:26:55 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D41415D9C9; Mon, 15 Apr 2019 21:26:54 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9397341F3D; Mon, 15 Apr 2019 21:26:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3FLQqI3032235 for ; Mon, 15 Apr 2019 17:26:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5CBED608C8; Mon, 15 Apr 2019 21:26:52 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-124-108.rdu2.redhat.com [10.10.124.108]) by smtp.corp.redhat.com (Postfix) with ESMTP id BCEAF608C2; Mon, 15 Apr 2019 21:26:49 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Mon, 15 Apr 2019 17:26:39 -0400 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 0/3] Add 'label' arg to VIR_ENUM_IMPL X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Mon, 15 Apr 2019 21:26:56 +0000 (UTC) v1: https://www.redhat.com/archives/libvir-list/2019-April/msg00589.html v2 changes: - First two patches applied - Turn on the error reporting, but only for label != NULL - Fill in label == NULL for all VIR_ENUM_IMPL calls - Patch #3 is added as an example conversion Cole Robinson (3): util: enum: Add 'label' arg to virEnum*String util: enum: Add NULL 'label' arg VIR_ENUM_IMPL calls conf: Add virDomainVirtType enum error label docs/apibuild.py | 14 ++ src/access/viraccessperm.c | 20 +-- src/bhyve/bhyve_driver.c | 6 +- src/conf/capabilities.c | 2 +- src/conf/cpu_conf.c | 14 +- src/conf/device_conf.c | 2 +- src/conf/domain_capabilities.c | 2 +- src/conf/domain_conf.c | 250 +++++++++++++++--------------- src/conf/interface_conf.c | 2 +- src/conf/netdev_vlan_conf.c | 2 +- src/conf/network_conf.c | 10 +- src/conf/node_device_conf.c | 8 +- src/conf/numa_conf.c | 6 +- src/conf/nwfilter_conf.c | 14 +- src/conf/snapshot_conf.c | 4 +- src/conf/storage_adapter_conf.c | 2 +- src/conf/storage_conf.c | 18 +-- src/libxl/libxl_domain.c | 2 +- src/libxl/libxl_driver.c | 6 +- src/locking/lock_daemon.c | 2 +- src/logging/log_daemon.c | 2 +- src/lxc/lxc_domain.c | 6 +- src/lxc/lxc_native.c | 2 +- src/network/leaseshelper.c | 2 +- src/qemu/qemu_agent.c | 4 +- src/qemu/qemu_capabilities.c | 7 +- src/qemu/qemu_command.c | 18 +-- src/qemu/qemu_domain.c | 8 +- src/qemu/qemu_driver.c | 4 +- src/qemu/qemu_firmware.c | 6 +- src/qemu/qemu_migration.c | 2 +- src/qemu/qemu_migration_cookie.c | 2 +- src/qemu/qemu_migration_params.c | 6 +- src/qemu/qemu_monitor.c | 8 +- src/qemu/qemu_monitor_json.c | 8 +- src/remote/remote_daemon.c | 2 +- src/util/vircgroup.c | 2 +- src/util/vircgroupbackend.c | 2 +- src/util/vircgroupv1.c | 2 +- src/util/vircgroupv2.c | 2 +- src/util/virconf.c | 2 +- src/util/virenum.c | 25 ++- src/util/virenum.h | 14 +- src/util/virerror.c | 2 +- src/util/virfirewall.c | 2 +- src/util/virfirewalld.c | 4 +- src/util/virgic.c | 2 +- src/util/virhook.c | 14 +- src/util/virkeycode.c | 2 +- src/util/virlog.c | 2 +- src/util/virmdev.c | 2 +- src/util/virnetdev.c | 6 +- src/util/virnetdevmacvlan.c | 2 +- src/util/virnetdevvportprofile.c | 4 +- src/util/virpci.c | 6 +- src/util/virperf.c | 2 +- src/util/virprocess.c | 2 +- src/util/virresctrl.c | 8 +- src/util/virsecret.c | 2 +- src/util/virstorageencryption.c | 4 +- src/util/virstoragefile.c | 14 +- src/util/virsysinfo.c | 2 +- src/util/virtypedparam.c | 2 +- src/vmware/vmware_conf.c | 2 +- src/vmx/vmx.c | 2 +- tools/virsh-domain-monitor.c | 24 +-- tools/virsh-domain.c | 54 +++---- tools/virsh-host.c | 2 +- tools/virsh-network.c | 8 +- tools/virsh-nodedev.c | 2 +- tools/virsh-pool.c | 4 +- tools/virsh-secret.c | 2 +- tools/virsh-volume.c | 4 +- tools/virt-admin.c | 2 +- tools/virt-host-validate-common.c | 2 +- 75 files changed, 364 insertions(+), 350 deletions(-) -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list