mirror of https://gitee.com/openkylin/libvirt.git
src/access: 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:
parent
e97f8228b9
commit
bed1143ff5
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue