提交 bed1143f 编写于 作者: J Jonathon Jongsma 提交者: Ján Tomko

src/access: use #pragma once in headers

Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 e97f8228
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRACCESSDRIVER_H #pragma once
# define LIBVIRT_VIRACCESSDRIVER_H
# include "conf/domain_conf.h" #include "conf/domain_conf.h"
# include "access/viraccessmanager.h" #include "access/viraccessmanager.h"
typedef int (*virAccessDriverCheckConnectDrv)(virAccessManagerPtr manager, typedef int (*virAccessDriverCheckConnectDrv)(virAccessManagerPtr manager,
const char *driverName, const char *driverName,
...@@ -89,6 +88,3 @@ struct _virAccessDriver { ...@@ -89,6 +88,3 @@ struct _virAccessDriver {
virAccessDriverCheckStoragePoolDrv checkStoragePool; virAccessDriverCheckStoragePoolDrv checkStoragePool;
virAccessDriverCheckStorageVolDrv checkStorageVol; virAccessDriverCheckStorageVolDrv checkStorageVol;
}; };
#endif /* LIBVIRT_VIRACCESSDRIVER_H */
...@@ -18,11 +18,8 @@ ...@@ -18,11 +18,8 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRACCESSDRIVERNOP_H #pragma once
# define LIBVIRT_VIRACCESSDRIVERNOP_H
# include "access/viraccessdriver.h" #include "access/viraccessdriver.h"
extern virAccessDriver accessDriverNop; extern virAccessDriver accessDriverNop;
#endif /* LIBVIRT_VIRACCESSDRIVERNOP_H */
...@@ -18,11 +18,8 @@ ...@@ -18,11 +18,8 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRACCESSDRIVERPOLKIT_H #pragma once
# define LIBVIRT_VIRACCESSDRIVERPOLKIT_H
# include "viraccessdriver.h" #include "viraccessdriver.h"
extern virAccessDriver accessDriverPolkit; extern virAccessDriver accessDriverPolkit;
#endif /* LIBVIRT_VIRACCESSDRIVERPOLKIT_H */
...@@ -18,15 +18,12 @@ ...@@ -18,15 +18,12 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRACCESSDRIVERSTACK_H #pragma once
# define LIBVIRT_VIRACCESSDRIVERSTACK_H
# include "access/viraccessdriver.h" #include "access/viraccessdriver.h"
int virAccessDriverStackAppend(virAccessManagerPtr manager, int virAccessDriverStackAppend(virAccessManagerPtr manager,
virAccessManagerPtr child); virAccessManagerPtr child);
extern virAccessDriver accessDriverStack; extern virAccessDriver accessDriverStack;
#endif /* LIBVIRT_VIRACCESSDRIVERSTACK_H */
...@@ -18,19 +18,18 @@ ...@@ -18,19 +18,18 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRACCESSMANAGER_H #pragma once
# define LIBVIRT_VIRACCESSMANAGER_H
# include "viridentity.h" #include "viridentity.h"
# include "conf/domain_conf.h" #include "conf/domain_conf.h"
# include "conf/network_conf.h" #include "conf/network_conf.h"
# include "conf/nwfilter_conf.h" #include "conf/nwfilter_conf.h"
# include "conf/node_device_conf.h" #include "conf/node_device_conf.h"
# include "conf/storage_conf.h" #include "conf/storage_conf.h"
# include "conf/secret_conf.h" #include "conf/secret_conf.h"
# include "conf/interface_conf.h" #include "conf/interface_conf.h"
# include "conf/virnwfilterbindingdef.h" #include "conf/virnwfilterbindingdef.h"
# include "access/viraccessperm.h" #include "access/viraccessperm.h"
typedef struct _virAccessManager virAccessManager; typedef struct _virAccessManager virAccessManager;
typedef virAccessManager *virAccessManagerPtr; typedef virAccessManager *virAccessManagerPtr;
...@@ -91,6 +90,3 @@ int virAccessManagerCheckStorageVol(virAccessManagerPtr manager, ...@@ -91,6 +90,3 @@ int virAccessManagerCheckStorageVol(virAccessManagerPtr manager,
virStoragePoolDefPtr pool, virStoragePoolDefPtr pool,
virStorageVolDefPtr vol, virStorageVolDefPtr vol,
virAccessPermStorageVol perm); virAccessPermStorageVol perm);
#endif /* LIBVIRT_VIRACCESSMANAGER_H */
...@@ -18,12 +18,11 @@ ...@@ -18,12 +18,11 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRACCESSPERM_H #pragma once
# define LIBVIRT_VIRACCESSPERM_H
# include "internal.h" #include "internal.h"
# include "virutil.h" #include "virutil.h"
# include "virenum.h" #include "virenum.h"
typedef enum { typedef enum {
/** /**
...@@ -699,5 +698,3 @@ VIR_ENUM_DECL(virAccessPermNWFilterBinding); ...@@ -699,5 +698,3 @@ VIR_ENUM_DECL(virAccessPermNWFilterBinding);
VIR_ENUM_DECL(virAccessPermSecret); VIR_ENUM_DECL(virAccessPermSecret);
VIR_ENUM_DECL(virAccessPermStoragePool); VIR_ENUM_DECL(virAccessPermStoragePool);
VIR_ENUM_DECL(virAccessPermStorageVol); VIR_ENUM_DECL(virAccessPermStorageVol);
#endif /* LIBVIRT_VIRACCESSPERM_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册