conf: misc: use #pragma once in headers

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jonathon Jongsma 2019-06-07 15:20:21 -05:00 committed by Ján Tomko
parent 5ef190a4d2
commit 222e0f0f08
19 changed files with 117 additions and 175 deletions

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CAPABILITIES_H
# define LIBVIRT_CAPABILITIES_H
#pragma once
#include "internal.h"
#include "virconftypes.h"
@ -328,5 +327,3 @@ void virCapsHostCacheBankFree(virCapsHostCacheBankPtr ptr);
int virCapabilitiesInitCaches(virCapsPtr caps);
void virCapabilitiesHostInitIOMMU(virCapsPtr caps);
#endif /* LIBVIRT_CAPABILITIES_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_CPU_CONF_H
# define LIBVIRT_CPU_CONF_H
#pragma once
#include "virutil.h"
#include "virbuffer.h"
@ -226,5 +225,3 @@ virCPUDefListParse(const char **xmlCPUs,
virCPUType cpuType);
void
virCPUDefListFree(virCPUDefPtr *cpus);
#endif /* LIBVIRT_CPU_CONF_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_DEVICE_CONF_H
# define LIBVIRT_DEVICE_CONF_H
#pragma once
#include <libxml/parser.h>
#include <libxml/tree.h>
@ -231,5 +230,3 @@ int virInterfaceLinkParseXML(xmlNodePtr node,
int virInterfaceLinkFormat(virBufferPtr buf,
const virNetDevIfLink *lnk);
#endif /* LIBVIRT_DEVICE_CONF_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_INTERFACE_CONF_H
# define LIBVIRT_INTERFACE_CONF_H
#pragma once
#include <libxml/parser.h>
#include <libxml/tree.h>
@ -178,5 +177,3 @@ virInterfaceDefFormat(const virInterfaceDef *def);
#define VIR_CONNECT_LIST_INTERFACES_FILTERS_ACTIVE \
(VIR_CONNECT_LIST_INTERFACES_ACTIVE | \
VIR_CONNECT_LIST_INTERFACES_INACTIVE)
#endif /* LIBVIRT_INTERFACE_CONF_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_MOMENT_CONF_H
# define LIBVIRT_MOMENT_CONF_H
#pragma once
#include "internal.h"
#include "virconftypes.h"
@ -43,5 +42,3 @@ struct _virDomainMomentDef {
virClassPtr virClassForDomainMomentDef(void);
int virDomainMomentDefPostParse(virDomainMomentDefPtr def);
#endif /* LIBVIRT_MOMENT_CONF_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_NUMA_CONF_H
# define LIBVIRT_NUMA_CONF_H
#pragma once
#include <libxml/xpath.h>
@ -185,6 +184,3 @@ int virDomainNumaDefCPUParseXML(virDomainNumaPtr def, xmlXPathContextPtr ctxt);
int virDomainNumaDefCPUFormatXML(virBufferPtr buf, virDomainNumaPtr def);
unsigned int virDomainNumaGetCPUCountTotal(virDomainNumaPtr numa);
#endif /* LIBVIRT_NUMA_CONF_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_OBJECT_EVENT_H
# define LIBVIRT_OBJECT_EVENT_H
#pragma once
#include "internal.h"
@ -88,5 +87,3 @@ virObjectEventStateSetRemote(virConnectPtr conn,
int callbackID,
int remoteID)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
#endif /* LIBVIRT_OBJECT_EVENT_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_OBJECT_EVENT_PRIVATE_H
# define LIBVIRT_OBJECT_EVENT_PRIVATE_H
#pragma once
#include "datatypes.h"
@ -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 */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_SECRET_CONF_H
# define LIBVIRT_SECRET_CONF_H
#pragma once
#include "internal.h"
#include "virutil.h"
@ -51,5 +50,3 @@ char *virSecretDefFormat(const virSecretDef *def);
#define VIR_CONNECT_LIST_SECRETS_FILTERS_ALL \
(VIR_CONNECT_LIST_SECRETS_FILTERS_EPHEMERAL | \
VIR_CONNECT_LIST_SECRETS_FILTERS_PRIVATE)
#endif /* LIBVIRT_SECRET_CONF_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_SECRET_EVENT_H
# define LIBVIRT_SECRET_EVENT_H
#pragma once
#include "internal.h"
#include "object_event.h"
@ -61,5 +60,3 @@ virObjectEventPtr
virSecretEventValueChangedNew(const unsigned char *uuid,
int usage_type,
const char *usage_id);
#endif /* LIBVIRT_SECRET_EVENT_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_SNAPSHOT_CONF_H
# define LIBVIRT_SNAPSHOT_CONF_H
#pragma once
#include "internal.h"
#include "domain_conf.h"
@ -143,5 +142,3 @@ int virDomainSnapshotRedefineValidate(virDomainSnapshotDefPtr def,
VIR_ENUM_DECL(virDomainSnapshotLocation);
VIR_ENUM_DECL(virDomainSnapshotState);
#endif /* LIBVIRT_SNAPSHOT_CONF_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRCHRDEV_H
# define LIBVIRT_VIRCHRDEV_H
#pragma once
#include "internal.h"
#include "domain_conf.h"
@ -33,5 +32,3 @@ void virChrdevFree(virChrdevsPtr devs);
int virChrdevOpen(virChrdevsPtr devs, virDomainChrSourceDefPtr source,
virStreamPtr st, bool force);
#endif /* LIBVIRT_VIRCHRDEV_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRCONFTYPES_H
# define LIBVIRT_VIRCONFTYPES_H
#pragma once
/* forward declarations of various types required in src/conf */
@ -345,5 +344,3 @@ typedef virDomainXMLPrivateDataCallbacks *virDomainXMLPrivateDataCallbacksPtr;
typedef struct _virDomainXenbusControllerOpts virDomainXenbusControllerOpts;
typedef virDomainXenbusControllerOpts *virDomainXenbusControllerOptsPtr;
#endif /* LIBVIRT_VIRCONFTYPES_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRDOMAINMOMENTOBJLIST_H
# define LIBVIRT_VIRDOMAINMOMENTOBJLIST_H
#pragma once
#include "internal.h"
#include "virconftypes.h"
@ -118,5 +117,3 @@ int virDomainMomentForEach(virDomainMomentObjListPtr moments,
virHashIterator iter,
void *data);
int virDomainMomentUpdateRelations(virDomainMomentObjListPtr moments);
#endif /* LIBVIRT_VIRDOMAINMOMENTOBJLIST_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRDOMAINOBJLIST_H
# define LIBVIRT_VIRDOMAINOBJLIST_H
#pragma once
#include "domain_conf.h"
@ -149,5 +148,3 @@ int virDomainObjListConvert(virDomainObjListPtr domlist,
virDomainObjListACLFilter filter,
unsigned int flags,
bool skip_missing);
#endif /* LIBVIRT_VIRDOMAINOBJLIST_H */

View File

@ -20,8 +20,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRDOMAINSNAPSHOTOBJLIST_H
# define LIBVIRT_VIRDOMAINSNAPSHOTOBJLIST_H
#pragma once
#include "internal.h"
#include "virdomainmomentobjlist.h"
@ -89,5 +88,3 @@ virDomainSnapshotObjGetDef(virDomainMomentObjPtr obj)
{
return (virDomainSnapshotDefPtr) obj->def;
}
#endif /* LIBVIRT_VIRDOMAINSNAPSHOTOBJLIST_H */

View File

@ -17,8 +17,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRINTERFACEOBJ_H
# define LIBVIRT_VIRINTERFACEOBJ_H
#pragma once
#include "internal.h"
@ -88,5 +87,3 @@ virInterfaceObjListExport(virConnectPtr conn,
virInterfacePtr **ifaces,
virInterfaceObjListFilter filter,
unsigned int flags);
#endif /* LIBVIRT_VIRINTERFACEOBJ_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRSAVECOOKIE_H
# define LIBVIRT_VIRSAVECOOKIE_H
#pragma once
#include <libxml/xpath.h>
@ -59,5 +58,3 @@ virSaveCookieFormatBuf(virBufferPtr buf,
char *
virSaveCookieFormat(virObjectPtr obj,
virSaveCookieCallbacksPtr saveCookie);
#endif /* LIBVIRT_VIRSAVECOOKIE_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRSECRETOBJ_H
# define LIBVIRT_VIRSECRETOBJ_H
#pragma once
#include "internal.h"
@ -117,5 +116,3 @@ virSecretObjSetValueSize(virSecretObjPtr obj,
int
virSecretLoadAllConfigs(virSecretObjListPtr secrets,
const char *configDir);
#endif /* LIBVIRT_VIRSECRETOBJ_H */