From nobody Fri Dec 19 19:16:15 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1559938962; cv=none; d=zoho.com; s=zohoarc; b=OxkjfLLMSnEkB/LwT9EiCb5plFWaSx5IOvgTDXhEL2NJllrvAK0C8o37znKYMvbM0iwVIDqJhaNhCXMDQNwU5GxLxaCc8kVomb8RiO6I7xjBL/qcJ/PUmcWQt/jjerqLtDn6MkyCgnW7eDvIzTGk2JBz61mhrZExlBoRjbkxJS0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559938962; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=TcYucUvbrUfGQ8vPlAoXPcBHD8/4HWHfesnlUbb2CwM=; b=UbWa3lXhKv7jfZCaXquBlAjWV3k/1OIlTquljG00DqVLaGQZuYUOXG5bEDKM/qi/OtzfFC4j+uBDATO2Oa/f3QXC9pRTOvosbSlxkOdPIe/0s0peUQ2MYnPG/kdRsGiC4noThxmbMp11tIaH157TJbPmwPsyEYOOb0RHya/pwWw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1559938962941505.32866163336973; Fri, 7 Jun 2019 13:22:42 -0700 (PDT) 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 3F0EB30F1BC9; Fri, 7 Jun 2019 20:22:31 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 169C55D9CC; Fri, 7 Jun 2019 20:22:29 +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 CA4241806B1E; Fri, 7 Jun 2019 20:22:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x57KKf3O025725 for ; Fri, 7 Jun 2019 16:20:41 -0400 Received: by smtp.corp.redhat.com (Postfix) id 096575C220; Fri, 7 Jun 2019 20:20:41 +0000 (UTC) Received: from aegolius.redhat.com (ovpn-117-185.phx2.redhat.com [10.3.117.185]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CAFEE5C205 for ; Fri, 7 Jun 2019 20:20:40 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Fri, 7 Jun 2019 15:20:21 -0500 Message-Id: <20190607202030.29625-11-jjongsma@redhat.com> In-Reply-To: <20190607202030.29625-1-jjongsma@redhat.com> References: <20190607202030.29625-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 10/19] conf: misc: use #pragma once in headers 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: , Content-Transfer-Encoding: quoted-printable 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.43]); Fri, 07 Jun 2019 20:22:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma --- src/conf/capabilities.h | 23 +++++++++----------- src/conf/cpu_conf.h | 23 +++++++++----------- src/conf/device_conf.h | 33 +++++++++++++---------------- src/conf/interface_conf.h | 23 +++++++++----------- src/conf/moment_conf.h | 11 ++++------ src/conf/numa_conf.h | 18 ++++++---------- src/conf/object_event.h | 11 ++++------ src/conf/object_event_private.h | 7 ++---- src/conf/secret_conf.h | 15 ++++++------- src/conf/secret_event.h | 11 ++++------ src/conf/snapshot_conf.h | 13 +++++------- src/conf/virchrdev.h | 9 +++----- src/conf/virconftypes.h | 5 +---- src/conf/virdomainmomentobjlist.h | 17 ++++++--------- src/conf/virdomainobjlist.h | 21 ++++++++---------- src/conf/virdomainsnapshotobjlist.h | 21 ++++++++---------- src/conf/virinterfaceobj.h | 7 ++---- src/conf/virsavecookie.h | 13 +++++------- src/conf/virsecretobj.h | 11 ++++------ 19 files changed, 117 insertions(+), 175 deletions(-) diff --git a/src/conf/capabilities.h b/src/conf/capabilities.h index a6331b081c..28b398891a 100644 --- a/src/conf/capabilities.h +++ b/src/conf/capabilities.h @@ -19,19 +19,18 @@ * . */ =20 -#ifndef LIBVIRT_CAPABILITIES_H -# define LIBVIRT_CAPABILITIES_H +#pragma once =20 -# include "internal.h" -# include "virconftypes.h" -# include "virbuffer.h" -# include "cpu_conf.h" -# include "virarch.h" -# include "virmacaddr.h" -# include "virobject.h" -# include "virresctrl.h" +#include "internal.h" +#include "virconftypes.h" +#include "virbuffer.h" +#include "cpu_conf.h" +#include "virarch.h" +#include "virmacaddr.h" +#include "virobject.h" +#include "virresctrl.h" =20 -# include +#include =20 struct _virCapsGuestFeature { char *name; @@ -328,5 +327,3 @@ void virCapsHostCacheBankFree(virCapsHostCacheBankPtr p= tr); int virCapabilitiesInitCaches(virCapsPtr caps); =20 void virCapabilitiesHostInitIOMMU(virCapsPtr caps); - -#endif /* LIBVIRT_CAPABILITIES_H */ diff --git a/src/conf/cpu_conf.h b/src/conf/cpu_conf.h index 51bf744fab..562e0de531 100644 --- a/src/conf/cpu_conf.h +++ b/src/conf/cpu_conf.h @@ -18,19 +18,18 @@ * . */ =20 -#ifndef LIBVIRT_CPU_CONF_H -# define LIBVIRT_CPU_CONF_H +#pragma once =20 -# include "virutil.h" -# include "virbuffer.h" -# include "virxml.h" -# include "virbitmap.h" -# include "virarch.h" -# include "numa_conf.h" -# include "virenum.h" -# include "virhostcpu.h" +#include "virutil.h" +#include "virbuffer.h" +#include "virxml.h" +#include "virbitmap.h" +#include "virarch.h" +#include "numa_conf.h" +#include "virenum.h" +#include "virhostcpu.h" =20 -# define VIR_CPU_VENDOR_ID_LENGTH 12 +#define VIR_CPU_VENDOR_ID_LENGTH 12 =20 typedef enum { VIR_CPU_TYPE_HOST, @@ -226,5 +225,3 @@ virCPUDefListParse(const char **xmlCPUs, virCPUType cpuType); void virCPUDefListFree(virCPUDefPtr *cpus); - -#endif /* LIBVIRT_CPU_CONF_H */ diff --git a/src/conf/device_conf.h b/src/conf/device_conf.h index b3299ac69d..06f7f365ad 100644 --- a/src/conf/device_conf.h +++ b/src/conf/device_conf.h @@ -18,20 +18,19 @@ * . */ =20 -#ifndef LIBVIRT_DEVICE_CONF_H -# define LIBVIRT_DEVICE_CONF_H +#pragma once =20 -# include -# include -# include +#include +#include +#include =20 -# include "internal.h" -# include "virutil.h" -# include "virthread.h" -# include "virbuffer.h" -# include "virpci.h" -# include "virnetdev.h" -# include "virenum.h" +#include "internal.h" +#include "virutil.h" +#include "virthread.h" +#include "virbuffer.h" +#include "virpci.h" +#include "virnetdev.h" +#include "virenum.h" =20 typedef enum { VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE, @@ -69,9 +68,9 @@ struct _virDomainDeviceVirtioSerialAddress { unsigned int port; }; =20 -# define VIR_DOMAIN_DEVICE_CCW_MAX_CSSID 254 -# define VIR_DOMAIN_DEVICE_CCW_MAX_SSID 3 -# define VIR_DOMAIN_DEVICE_CCW_MAX_DEVNO 65535 +#define VIR_DOMAIN_DEVICE_CCW_MAX_CSSID 254 +#define VIR_DOMAIN_DEVICE_CCW_MAX_SSID 3 +#define VIR_DOMAIN_DEVICE_CCW_MAX_DEVNO 65535 =20 typedef struct _virDomainDeviceCCWAddress virDomainDeviceCCWAddress; typedef virDomainDeviceCCWAddress *virDomainDeviceCCWAddressPtr; @@ -89,7 +88,7 @@ struct _virDomainDeviceCcidAddress { unsigned int slot; }; =20 -# define VIR_DOMAIN_DEVICE_USB_MAX_PORT_DEPTH 4 +#define VIR_DOMAIN_DEVICE_USB_MAX_PORT_DEPTH 4 =20 typedef struct _virDomainDeviceUSBAddress virDomainDeviceUSBAddress; typedef virDomainDeviceUSBAddress *virDomainDeviceUSBAddressPtr; @@ -231,5 +230,3 @@ int virInterfaceLinkParseXML(xmlNodePtr node, =20 int virInterfaceLinkFormat(virBufferPtr buf, const virNetDevIfLink *lnk); - -#endif /* LIBVIRT_DEVICE_CONF_H */ diff --git a/src/conf/interface_conf.h b/src/conf/interface_conf.h index e56b158b6d..ce405e5b15 100644 --- a/src/conf/interface_conf.h +++ b/src/conf/interface_conf.h @@ -18,18 +18,17 @@ * . */ =20 -#ifndef LIBVIRT_INTERFACE_CONF_H -# define LIBVIRT_INTERFACE_CONF_H +#pragma once =20 -# include -# include -# include +#include +#include +#include =20 -# include "internal.h" -# include "virutil.h" -# include "virthread.h" -# include "device_conf.h" -# include "virenum.h" +#include "internal.h" +#include "virutil.h" +#include "virthread.h" +#include "device_conf.h" +#include "virenum.h" =20 /* There is currently 3 types of interfaces */ =20 @@ -175,8 +174,6 @@ virInterfaceDefParseNode(xmlDocPtr xml, char * virInterfaceDefFormat(const virInterfaceDef *def); =20 -# define VIR_CONNECT_LIST_INTERFACES_FILTERS_ACTIVE \ +#define VIR_CONNECT_LIST_INTERFACES_FILTERS_ACTIVE \ (VIR_CONNECT_LIST_INTERFACES_ACTIVE | \ VIR_CONNECT_LIST_INTERFACES_INACTIVE) - -#endif /* LIBVIRT_INTERFACE_CONF_H */ diff --git a/src/conf/moment_conf.h b/src/conf/moment_conf.h index 00ec1c1904..9fdbef2172 100644 --- a/src/conf/moment_conf.h +++ b/src/conf/moment_conf.h @@ -20,12 +20,11 @@ * . */ =20 -#ifndef LIBVIRT_MOMENT_CONF_H -# define LIBVIRT_MOMENT_CONF_H +#pragma once =20 -# include "internal.h" -# include "virconftypes.h" -# include "virobject.h" +#include "internal.h" +#include "virconftypes.h" +#include "virobject.h" =20 /* Base class for a domain moment */ struct _virDomainMomentDef { @@ -43,5 +42,3 @@ struct _virDomainMomentDef { virClassPtr virClassForDomainMomentDef(void); =20 int virDomainMomentDefPostParse(virDomainMomentDefPtr def); - -#endif /* LIBVIRT_MOMENT_CONF_H */ diff --git a/src/conf/numa_conf.h b/src/conf/numa_conf.h index ae1793a950..e76a09c20c 100644 --- a/src/conf/numa_conf.h +++ b/src/conf/numa_conf.h @@ -18,16 +18,15 @@ * . */ =20 -#ifndef LIBVIRT_NUMA_CONF_H -# define LIBVIRT_NUMA_CONF_H +#pragma once =20 -# include +#include =20 -# include "internal.h" -# include "virutil.h" -# include "virbitmap.h" -# include "virbuffer.h" -# include "virenum.h" +#include "internal.h" +#include "virutil.h" +#include "virbitmap.h" +#include "virbuffer.h" +#include "virenum.h" =20 =20 typedef struct _virDomainNuma virDomainNuma; @@ -185,6 +184,3 @@ int virDomainNumaDefCPUParseXML(virDomainNumaPtr def, x= mlXPathContextPtr ctxt); int virDomainNumaDefCPUFormatXML(virBufferPtr buf, virDomainNumaPtr def); =20 unsigned int virDomainNumaGetCPUCountTotal(virDomainNumaPtr numa); - - -#endif /* LIBVIRT_NUMA_CONF_H */ diff --git a/src/conf/object_event.h b/src/conf/object_event.h index bbeaa3aae7..63b0818613 100644 --- a/src/conf/object_event.h +++ b/src/conf/object_event.h @@ -20,12 +20,11 @@ * . */ =20 -#ifndef LIBVIRT_OBJECT_EVENT_H -# define LIBVIRT_OBJECT_EVENT_H +#pragma once =20 -# include "internal.h" +#include "internal.h" =20 -# include "virobject.h" +#include "virobject.h" =20 /** * Dispatching domain events that come in while @@ -54,7 +53,7 @@ typedef void (*virConnectObjectEventGenericCallback)(virC= onnectPtr conn, void *obj, void *opaque); =20 -# define VIR_OBJECT_EVENT_CALLBACK(cb) \ +#define VIR_OBJECT_EVENT_CALLBACK(cb) \ ((virConnectObjectEventGenericCallback)(cb)) =20 void @@ -88,5 +87,3 @@ virObjectEventStateSetRemote(virConnectPtr conn, int callbackID, int remoteID) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); - -#endif /* LIBVIRT_OBJECT_EVENT_H */ diff --git a/src/conf/object_event_private.h b/src/conf/object_event_privat= e.h index 5000b99504..b31441c53a 100644 --- a/src/conf/object_event_private.h +++ b/src/conf/object_event_private.h @@ -20,10 +20,9 @@ * . */ =20 -#ifndef LIBVIRT_OBJECT_EVENT_PRIVATE_H -# define LIBVIRT_OBJECT_EVENT_PRIVATE_H +#pragma once =20 -# include "datatypes.h" +#include "datatypes.h" =20 struct _virObjectMeta { int id; @@ -105,5 +104,3 @@ virObjectEventNew(virClassPtr klass, const char *key) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5) ATTRIBUTE_NONNULL(7); - -#endif /* LIBVIRT_OBJECT_EVENT_PRIVATE_H */ diff --git a/src/conf/secret_conf.h b/src/conf/secret_conf.h index 1a48f12dd9..de1c28e187 100644 --- a/src/conf/secret_conf.h +++ b/src/conf/secret_conf.h @@ -18,11 +18,10 @@ * . */ =20 -#ifndef LIBVIRT_SECRET_CONF_H -# define LIBVIRT_SECRET_CONF_H +#pragma once =20 -# include "internal.h" -# include "virutil.h" +#include "internal.h" +#include "virutil.h" =20 typedef struct _virSecretDef virSecretDef; typedef virSecretDef *virSecretDefPtr; @@ -40,16 +39,14 @@ virSecretDefPtr virSecretDefParseString(const char *xml= ); virSecretDefPtr virSecretDefParseFile(const char *filename); char *virSecretDefFormat(const virSecretDef *def); =20 -# define VIR_CONNECT_LIST_SECRETS_FILTERS_EPHEMERAL \ +#define VIR_CONNECT_LIST_SECRETS_FILTERS_EPHEMERAL \ (VIR_CONNECT_LIST_SECRETS_EPHEMERAL | \ VIR_CONNECT_LIST_SECRETS_NO_EPHEMERAL) =20 -# define VIR_CONNECT_LIST_SECRETS_FILTERS_PRIVATE \ +#define VIR_CONNECT_LIST_SECRETS_FILTERS_PRIVATE \ (VIR_CONNECT_LIST_SECRETS_PRIVATE | \ VIR_CONNECT_LIST_SECRETS_NO_PRIVATE) =20 -# define VIR_CONNECT_LIST_SECRETS_FILTERS_ALL \ +#define VIR_CONNECT_LIST_SECRETS_FILTERS_ALL \ (VIR_CONNECT_LIST_SECRETS_FILTERS_EPHEMERAL | \ VIR_CONNECT_LIST_SECRETS_FILTERS_PRIVATE) - -#endif /* LIBVIRT_SECRET_CONF_H */ diff --git a/src/conf/secret_event.h b/src/conf/secret_event.h index 83a432d5a6..3fe80521b9 100644 --- a/src/conf/secret_event.h +++ b/src/conf/secret_event.h @@ -20,12 +20,11 @@ * . */ =20 -#ifndef LIBVIRT_SECRET_EVENT_H -# define LIBVIRT_SECRET_EVENT_H +#pragma once =20 -# include "internal.h" -# include "object_event.h" -# include "object_event_private.h" +#include "internal.h" +#include "object_event.h" +#include "object_event_private.h" =20 int virSecretEventStateRegisterID(virConnectPtr conn, @@ -61,5 +60,3 @@ virObjectEventPtr virSecretEventValueChangedNew(const unsigned char *uuid, int usage_type, const char *usage_id); - -#endif /* LIBVIRT_SECRET_EVENT_H */ diff --git a/src/conf/snapshot_conf.h b/src/conf/snapshot_conf.h index 55b7487cfb..08b2a3b955 100644 --- a/src/conf/snapshot_conf.h +++ b/src/conf/snapshot_conf.h @@ -19,13 +19,12 @@ * . */ =20 -#ifndef LIBVIRT_SNAPSHOT_CONF_H -# define LIBVIRT_SNAPSHOT_CONF_H +#pragma once =20 -# include "internal.h" -# include "domain_conf.h" -# include "moment_conf.h" -# include "virenum.h" +#include "internal.h" +#include "domain_conf.h" +#include "moment_conf.h" +#include "virenum.h" =20 /* Items related to snapshot state */ =20 @@ -143,5 +142,3 @@ int virDomainSnapshotRedefineValidate(virDomainSnapshot= DefPtr def, =20 VIR_ENUM_DECL(virDomainSnapshotLocation); VIR_ENUM_DECL(virDomainSnapshotState); - -#endif /* LIBVIRT_SNAPSHOT_CONF_H */ diff --git a/src/conf/virchrdev.h b/src/conf/virchrdev.h index 42306ff933..e218ea7203 100644 --- a/src/conf/virchrdev.h +++ b/src/conf/virchrdev.h @@ -19,11 +19,10 @@ * . */ =20 -#ifndef LIBVIRT_VIRCHRDEV_H -# define LIBVIRT_VIRCHRDEV_H +#pragma once =20 -# include "internal.h" -# include "domain_conf.h" +#include "internal.h" +#include "domain_conf.h" =20 typedef struct _virChrdevs virChrdevs; typedef virChrdevs *virChrdevsPtr; @@ -33,5 +32,3 @@ void virChrdevFree(virChrdevsPtr devs); =20 int virChrdevOpen(virChrdevsPtr devs, virDomainChrSourceDefPtr source, virStreamPtr st, bool force); - -#endif /* LIBVIRT_VIRCHRDEV_H */ diff --git a/src/conf/virconftypes.h b/src/conf/virconftypes.h index 6a8267c422..b8f553f7fb 100644 --- a/src/conf/virconftypes.h +++ b/src/conf/virconftypes.h @@ -20,8 +20,7 @@ * . */ =20 -#ifndef LIBVIRT_VIRCONFTYPES_H -# define LIBVIRT_VIRCONFTYPES_H +#pragma once =20 /* forward declarations of various types required in src/conf */ =20 @@ -345,5 +344,3 @@ typedef virDomainXMLPrivateDataCallbacks *virDomainXMLP= rivateDataCallbacksPtr; =20 typedef struct _virDomainXenbusControllerOpts virDomainXenbusControllerOpt= s; typedef virDomainXenbusControllerOpts *virDomainXenbusControllerOptsPtr; - -#endif /* LIBVIRT_VIRCONFTYPES_H */ diff --git a/src/conf/virdomainmomentobjlist.h b/src/conf/virdomainmomentob= jlist.h index 6481c771de..68f00a114f 100644 --- a/src/conf/virdomainmomentobjlist.h +++ b/src/conf/virdomainmomentobjlist.h @@ -20,12 +20,11 @@ * . */ =20 -#ifndef LIBVIRT_VIRDOMAINMOMENTOBJLIST_H -# define LIBVIRT_VIRDOMAINMOMENTOBJLIST_H +#pragma once =20 -# include "internal.h" -# include "virconftypes.h" -# include "virhash.h" +#include "internal.h" +#include "virconftypes.h" +#include "virhash.h" =20 /* Filter that returns true if a given moment matches the filter flags */ typedef bool (*virDomainMomentObjListFilter)(virDomainMomentObjPtr obj, @@ -83,15 +82,15 @@ typedef enum { VIR_DOMAIN_MOMENT_LIST_NO_METADATA =3D (1 << 5), } virDomainMomentFilters; =20 -# define VIR_DOMAIN_MOMENT_FILTERS_METADATA \ +#define VIR_DOMAIN_MOMENT_FILTERS_METADATA \ (VIR_DOMAIN_MOMENT_LIST_METADATA | \ VIR_DOMAIN_MOMENT_LIST_NO_METADATA) =20 -# define VIR_DOMAIN_MOMENT_FILTERS_LEAVES \ +#define VIR_DOMAIN_MOMENT_FILTERS_LEAVES \ (VIR_DOMAIN_MOMENT_LIST_LEAVES | \ VIR_DOMAIN_MOMENT_LIST_NO_LEAVES) =20 -# define VIR_DOMAIN_MOMENT_FILTERS_ALL \ +#define VIR_DOMAIN_MOMENT_FILTERS_ALL \ (VIR_DOMAIN_MOMENT_LIST_ROOTS | \ VIR_DOMAIN_MOMENT_LIST_TOPOLOGICAL | \ VIR_DOMAIN_MOMENT_FILTERS_METADATA | \ @@ -118,5 +117,3 @@ int virDomainMomentForEach(virDomainMomentObjListPtr mo= ments, virHashIterator iter, void *data); int virDomainMomentUpdateRelations(virDomainMomentObjListPtr moments); - -#endif /* LIBVIRT_VIRDOMAINMOMENTOBJLIST_H */ diff --git a/src/conf/virdomainobjlist.h b/src/conf/virdomainobjlist.h index c1ffee76ad..bf3ab396fa 100644 --- a/src/conf/virdomainobjlist.h +++ b/src/conf/virdomainobjlist.h @@ -20,10 +20,9 @@ * . */ =20 -#ifndef LIBVIRT_VIRDOMAINOBJLIST_H -# define LIBVIRT_VIRDOMAINOBJLIST_H +#pragma once =20 -# include "domain_conf.h" +#include "domain_conf.h" =20 typedef struct _virDomainObjList virDomainObjList; typedef virDomainObjList *virDomainObjListPtr; @@ -95,33 +94,33 @@ int virDomainObjListForEach(virDomainObjListPtr doms, virDomainObjListIterator callback, void *opaque); =20 -# define VIR_CONNECT_LIST_DOMAINS_FILTERS_ACTIVE \ +#define VIR_CONNECT_LIST_DOMAINS_FILTERS_ACTIVE \ (VIR_CONNECT_LIST_DOMAINS_ACTIVE | \ VIR_CONNECT_LIST_DOMAINS_INACTIVE) =20 -# define VIR_CONNECT_LIST_DOMAINS_FILTERS_PERSISTENT \ +#define VIR_CONNECT_LIST_DOMAINS_FILTERS_PERSISTENT \ (VIR_CONNECT_LIST_DOMAINS_PERSISTENT | \ VIR_CONNECT_LIST_DOMAINS_TRANSIENT) =20 -# define VIR_CONNECT_LIST_DOMAINS_FILTERS_STATE \ +#define VIR_CONNECT_LIST_DOMAINS_FILTERS_STATE \ (VIR_CONNECT_LIST_DOMAINS_RUNNING | \ VIR_CONNECT_LIST_DOMAINS_PAUSED | \ VIR_CONNECT_LIST_DOMAINS_SHUTOFF | \ VIR_CONNECT_LIST_DOMAINS_OTHER) =20 -# define VIR_CONNECT_LIST_DOMAINS_FILTERS_MANAGEDSAVE \ +#define VIR_CONNECT_LIST_DOMAINS_FILTERS_MANAGEDSAVE \ (VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE | \ VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE) =20 -# define VIR_CONNECT_LIST_DOMAINS_FILTERS_AUTOSTART \ +#define VIR_CONNECT_LIST_DOMAINS_FILTERS_AUTOSTART \ (VIR_CONNECT_LIST_DOMAINS_AUTOSTART | \ VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART) =20 -# define VIR_CONNECT_LIST_DOMAINS_FILTERS_SNAPSHOT \ +#define VIR_CONNECT_LIST_DOMAINS_FILTERS_SNAPSHOT \ (VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT | \ VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT) =20 -# define VIR_CONNECT_LIST_DOMAINS_FILTERS_ALL \ +#define VIR_CONNECT_LIST_DOMAINS_FILTERS_ALL \ (VIR_CONNECT_LIST_DOMAINS_FILTERS_ACTIVE | \ VIR_CONNECT_LIST_DOMAINS_FILTERS_PERSISTENT | \ VIR_CONNECT_LIST_DOMAINS_FILTERS_STATE | \ @@ -149,5 +148,3 @@ int virDomainObjListConvert(virDomainObjListPtr domlist, virDomainObjListACLFilter filter, unsigned int flags, bool skip_missing); - -#endif /* LIBVIRT_VIRDOMAINOBJLIST_H */ diff --git a/src/conf/virdomainsnapshotobjlist.h b/src/conf/virdomainsnapsh= otobjlist.h index b83f7a4ba9..26fa456730 100644 --- a/src/conf/virdomainsnapshotobjlist.h +++ b/src/conf/virdomainsnapshotobjlist.h @@ -20,12 +20,11 @@ * . */ =20 -#ifndef LIBVIRT_VIRDOMAINSNAPSHOTOBJLIST_H -# define LIBVIRT_VIRDOMAINSNAPSHOTOBJLIST_H +#pragma once =20 -# include "internal.h" -# include "virdomainmomentobjlist.h" -# include "virbuffer.h" +#include "internal.h" +#include "virdomainmomentobjlist.h" +#include "virbuffer.h" =20 virDomainSnapshotObjListPtr virDomainSnapshotObjListNew(void); void virDomainSnapshotObjListFree(virDomainSnapshotObjListPtr snapshots); @@ -54,24 +53,24 @@ int virDomainSnapshotForEach(virDomainSnapshotObjListPt= r snapshots, void *data); int virDomainSnapshotUpdateRelations(virDomainSnapshotObjListPtr snapshots= ); =20 -# define VIR_DOMAIN_SNAPSHOT_FILTERS_METADATA \ +#define VIR_DOMAIN_SNAPSHOT_FILTERS_METADATA \ (VIR_DOMAIN_SNAPSHOT_LIST_METADATA | \ VIR_DOMAIN_SNAPSHOT_LIST_NO_METADATA) =20 -# define VIR_DOMAIN_SNAPSHOT_FILTERS_LEAVES \ +#define VIR_DOMAIN_SNAPSHOT_FILTERS_LEAVES \ (VIR_DOMAIN_SNAPSHOT_LIST_LEAVES | \ VIR_DOMAIN_SNAPSHOT_LIST_NO_LEAVES) =20 -# define VIR_DOMAIN_SNAPSHOT_FILTERS_STATUS \ +#define VIR_DOMAIN_SNAPSHOT_FILTERS_STATUS \ (VIR_DOMAIN_SNAPSHOT_LIST_INACTIVE | \ VIR_DOMAIN_SNAPSHOT_LIST_ACTIVE | \ VIR_DOMAIN_SNAPSHOT_LIST_DISK_ONLY) =20 -# define VIR_DOMAIN_SNAPSHOT_FILTERS_LOCATION \ +#define VIR_DOMAIN_SNAPSHOT_FILTERS_LOCATION \ (VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL | \ VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL) =20 -# define VIR_DOMAIN_SNAPSHOT_FILTERS_ALL \ +#define VIR_DOMAIN_SNAPSHOT_FILTERS_ALL \ (VIR_DOMAIN_SNAPSHOT_FILTERS_METADATA | \ VIR_DOMAIN_SNAPSHOT_FILTERS_LEAVES | \ VIR_DOMAIN_SNAPSHOT_FILTERS_STATUS | \ @@ -89,5 +88,3 @@ virDomainSnapshotObjGetDef(virDomainMomentObjPtr obj) { return (virDomainSnapshotDefPtr) obj->def; } - -#endif /* LIBVIRT_VIRDOMAINSNAPSHOTOBJLIST_H */ diff --git a/src/conf/virinterfaceobj.h b/src/conf/virinterfaceobj.h index 6ad331af4f..6142fb9f53 100644 --- a/src/conf/virinterfaceobj.h +++ b/src/conf/virinterfaceobj.h @@ -17,10 +17,9 @@ * . */ =20 -#ifndef LIBVIRT_VIRINTERFACEOBJ_H -# define LIBVIRT_VIRINTERFACEOBJ_H +#pragma once =20 -# include "internal.h" +#include "internal.h" =20 typedef struct _virInterfaceObj virInterfaceObj; typedef virInterfaceObj *virInterfaceObjPtr; @@ -88,5 +87,3 @@ virInterfaceObjListExport(virConnectPtr conn, virInterfacePtr **ifaces, virInterfaceObjListFilter filter, unsigned int flags); - -#endif /* LIBVIRT_VIRINTERFACEOBJ_H */ diff --git a/src/conf/virsavecookie.h b/src/conf/virsavecookie.h index a5e41e7acb..eafffbed66 100644 --- a/src/conf/virsavecookie.h +++ b/src/conf/virsavecookie.h @@ -18,14 +18,13 @@ * . */ =20 -#ifndef LIBVIRT_VIRSAVECOOKIE_H -# define LIBVIRT_VIRSAVECOOKIE_H +#pragma once =20 -# include +#include =20 -# include "internal.h" -# include "virobject.h" -# include "virbuffer.h" +#include "internal.h" +#include "virobject.h" +#include "virbuffer.h" =20 =20 typedef int (*virSaveCookieParseFunc)(xmlXPathContextPtr ctxt, @@ -59,5 +58,3 @@ virSaveCookieFormatBuf(virBufferPtr buf, char * virSaveCookieFormat(virObjectPtr obj, virSaveCookieCallbacksPtr saveCookie); - -#endif /* LIBVIRT_VIRSAVECOOKIE_H */ diff --git a/src/conf/virsecretobj.h b/src/conf/virsecretobj.h index 1563fa8ca7..09ee19f603 100644 --- a/src/conf/virsecretobj.h +++ b/src/conf/virsecretobj.h @@ -18,13 +18,12 @@ * . */ =20 -#ifndef LIBVIRT_VIRSECRETOBJ_H -# define LIBVIRT_VIRSECRETOBJ_H +#pragma once =20 -# include "internal.h" +#include "internal.h" =20 -# include "secret_conf.h" -# include "virobject.h" +#include "secret_conf.h" +#include "virobject.h" =20 typedef struct _virSecretObj virSecretObj; typedef virSecretObj *virSecretObjPtr; @@ -117,5 +116,3 @@ virSecretObjSetValueSize(virSecretObjPtr obj, int virSecretLoadAllConfigs(virSecretObjListPtr secrets, const char *configDir); - -#endif /* LIBVIRT_VIRSECRETOBJ_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list