提交 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 @@
* <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 */
......@@ -18,11 +18,8 @@
* <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 */
......@@ -18,11 +18,8 @@
* <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 */
......@@ -18,15 +18,12 @@
* <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 */
......@@ -18,19 +18,18 @@
* <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 */
......@@ -18,12 +18,11 @@
* <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 */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册