]> xenbits.xensource.com Git - libvirt.git/commitdiff
src/access: use #pragma once in headers
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 7 Jun 2019 20:20:13 +0000 (15:20 -0500)
committerJán Tomko <jtomko@redhat.com>
Thu, 13 Jun 2019 15:05:08 +0000 (17:05 +0200)
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>
src/access/viraccessdriver.h
src/access/viraccessdrivernop.h
src/access/viraccessdriverpolkit.h
src/access/viraccessdriverstack.h
src/access/viraccessmanager.h
src/access/viraccessperm.h

index 2cc3950f60b0e1980b3c0e0402ac61d8cca2e4e1..9fe7428e0e4a7de358cddb57b103098fcc14ede9 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_VIRACCESSDRIVER_H
-# define LIBVIRT_VIRACCESSDRIVER_H
+#pragma once
 
-# include "conf/domain_conf.h"
-# include "access/viraccessmanager.h"
+#include "conf/domain_conf.h"
+#include "access/viraccessmanager.h"
 
 typedef int (*virAccessDriverCheckConnectDrv)(virAccessManagerPtr manager,
                                               const char *driverName,
@@ -89,6 +88,3 @@ struct _virAccessDriver {
     virAccessDriverCheckStoragePoolDrv checkStoragePool;
     virAccessDriverCheckStorageVolDrv checkStorageVol;
 };
-
-
-#endif /* LIBVIRT_VIRACCESSDRIVER_H */
index d383c6f3efcefd16e2d6e55ae14c0d4ecd3b83fb..60f4cac0b79ac2780d9b0093d140e3cb0f68670f 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_VIRACCESSDRIVERNOP_H
-# define LIBVIRT_VIRACCESSDRIVERNOP_H
+#pragma once
 
-# include "access/viraccessdriver.h"
+#include "access/viraccessdriver.h"
 
 extern virAccessDriver accessDriverNop;
-
-#endif /* LIBVIRT_VIRACCESSDRIVERNOP_H */
index 4c71889824f23e8e78bd81007d3027a6e694de4d..0e52606c99364af7f31c6a3be861469f50c0ffdf 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_VIRACCESSDRIVERPOLKIT_H
-# define LIBVIRT_VIRACCESSDRIVERPOLKIT_H
+#pragma once
 
-# include "viraccessdriver.h"
+#include "viraccessdriver.h"
 
 extern virAccessDriver accessDriverPolkit;
-
-#endif /* LIBVIRT_VIRACCESSDRIVERPOLKIT_H */
index 0984b21914dbe0b730c3d332fe83e03583afd848..078da697e8a4310a1e01bc21e369c028342a7869 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_VIRACCESSDRIVERSTACK_H
-# define LIBVIRT_VIRACCESSDRIVERSTACK_H
+#pragma once
 
-# include "access/viraccessdriver.h"
+#include "access/viraccessdriver.h"
 
 
 int virAccessDriverStackAppend(virAccessManagerPtr manager,
                                virAccessManagerPtr child);
 
 extern virAccessDriver accessDriverStack;
-
-#endif /* LIBVIRT_VIRACCESSDRIVERSTACK_H */
index ab5ef8758513f88b5aec71d7453848535d1f512b..6da41b0823167ff45c2dd8285a6959e43c5452f4 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_VIRACCESSMANAGER_H
-# define LIBVIRT_VIRACCESSMANAGER_H
+#pragma once
 
-# include "viridentity.h"
-# include "conf/domain_conf.h"
-# include "conf/network_conf.h"
-# include "conf/nwfilter_conf.h"
-# include "conf/node_device_conf.h"
-# include "conf/storage_conf.h"
-# include "conf/secret_conf.h"
-# include "conf/interface_conf.h"
-# include "conf/virnwfilterbindingdef.h"
-# include "access/viraccessperm.h"
+#include "viridentity.h"
+#include "conf/domain_conf.h"
+#include "conf/network_conf.h"
+#include "conf/nwfilter_conf.h"
+#include "conf/node_device_conf.h"
+#include "conf/storage_conf.h"
+#include "conf/secret_conf.h"
+#include "conf/interface_conf.h"
+#include "conf/virnwfilterbindingdef.h"
+#include "access/viraccessperm.h"
 
 typedef struct _virAccessManager virAccessManager;
 typedef virAccessManager *virAccessManagerPtr;
@@ -91,6 +90,3 @@ int virAccessManagerCheckStorageVol(virAccessManagerPtr manager,
                                     virStoragePoolDefPtr pool,
                                     virStorageVolDefPtr vol,
                                     virAccessPermStorageVol perm);
-
-
-#endif /* LIBVIRT_VIRACCESSMANAGER_H */
index ed1f7168ca4fb4b01f30938dd691420e13c2d926..8b63d75cf7dcb36b123caa191b732b680a41246a 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_VIRACCESSPERM_H
-# define LIBVIRT_VIRACCESSPERM_H
+#pragma once
 
-# include "internal.h"
-# include "virutil.h"
-# include "virenum.h"
+#include "internal.h"
+#include "virutil.h"
+#include "virenum.h"
 
 typedef enum {
     /**
@@ -699,5 +698,3 @@ VIR_ENUM_DECL(virAccessPermNWFilterBinding);
 VIR_ENUM_DECL(virAccessPermSecret);
 VIR_ENUM_DECL(virAccessPermStoragePool);
 VIR_ENUM_DECL(virAccessPermStorageVol);
-
-#endif /* LIBVIRT_VIRACCESSPERM_H */