mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +00:00
Use #pragma once in driver 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
e6635c626a
commit
e97f8228b9
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_HYPERVISOR_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_HYPERVISOR_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -1581,6 +1580,3 @@ struct _virHypervisorDriver {
|
|||||||
virDrvNodeGetSEVInfo nodeGetSEVInfo;
|
virDrvNodeGetSEVInfo nodeGetSEVInfo;
|
||||||
virDrvDomainGetLaunchSecurityInfo domainGetLaunchSecurityInfo;
|
virDrvDomainGetLaunchSecurityInfo domainGetLaunchSecurityInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_HYPERVISOR_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_INTERFACE_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_INTERFACE_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -117,6 +116,3 @@ struct _virInterfaceDriver {
|
|||||||
virDrvInterfaceChangeCommit interfaceChangeCommit;
|
virDrvInterfaceChangeCommit interfaceChangeCommit;
|
||||||
virDrvInterfaceChangeRollback interfaceChangeRollback;
|
virDrvInterfaceChangeRollback interfaceChangeRollback;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_INTERFACE_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_NETWORK_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_NETWORK_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -152,6 +151,3 @@ struct _virNetworkDriver {
|
|||||||
virDrvNetworkIsPersistent networkIsPersistent;
|
virDrvNetworkIsPersistent networkIsPersistent;
|
||||||
virDrvNetworkGetDHCPLeases networkGetDHCPLeases;
|
virDrvNetworkGetDHCPLeases networkGetDHCPLeases;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_NETWORK_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_NODEDEV_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_NODEDEV_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -115,6 +114,3 @@ struct _virNodeDeviceDriver {
|
|||||||
virDrvNodeDeviceCreateXML nodeDeviceCreateXML;
|
virDrvNodeDeviceCreateXML nodeDeviceCreateXML;
|
||||||
virDrvNodeDeviceDestroy nodeDeviceDestroy;
|
virDrvNodeDeviceDestroy nodeDeviceDestroy;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_NODEDEV_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_NWFILTER_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_NWFILTER_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -108,6 +107,3 @@ struct _virNWFilterDriver {
|
|||||||
virDrvNWFilterBindingDelete nwfilterBindingDelete;
|
virDrvNWFilterBindingDelete nwfilterBindingDelete;
|
||||||
virDrvNWFilterBindingGetXMLDesc nwfilterBindingGetXMLDesc;
|
virDrvNWFilterBindingGetXMLDesc nwfilterBindingGetXMLDesc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_NWFILTER_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_SECRET_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_SECRET_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -113,6 +112,3 @@ struct _virSecretDriver {
|
|||||||
virDrvConnectSecretEventRegisterAny connectSecretEventRegisterAny;
|
virDrvConnectSecretEventRegisterAny connectSecretEventRegisterAny;
|
||||||
virDrvConnectSecretEventDeregisterAny connectSecretEventDeregisterAny;
|
virDrvConnectSecretEventDeregisterAny connectSecretEventDeregisterAny;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_SECRET_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_STATE_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_STATE_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -49,6 +48,3 @@ struct _virStateDriver {
|
|||||||
virDrvStateReload stateReload;
|
virDrvStateReload stateReload;
|
||||||
virDrvStateStop stateStop;
|
virDrvStateStop stateStop;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_STATE_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_STORAGE_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_STORAGE_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -279,6 +278,3 @@ struct _virStorageDriver {
|
|||||||
virDrvStoragePoolIsActive storagePoolIsActive;
|
virDrvStoragePoolIsActive storagePoolIsActive;
|
||||||
virDrvStoragePoolIsPersistent storagePoolIsPersistent;
|
virDrvStoragePoolIsPersistent storagePoolIsPersistent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_STORAGE_H */
|
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_STREAM_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_STREAM_H
|
|
||||||
|
|
||||||
#ifndef __VIR_DRIVER_H_INCLUDES___
|
#ifndef __VIR_DRIVER_H_INCLUDES___
|
||||||
# error "Don't include this file directly, only use driver.h"
|
# error "Don't include this file directly, only use driver.h"
|
||||||
@ -92,6 +91,3 @@ struct _virStreamDriver {
|
|||||||
virDrvStreamFinish streamFinish;
|
virDrvStreamFinish streamFinish;
|
||||||
virDrvStreamAbort streamAbort;
|
virDrvStreamAbort streamAbort;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_STREAM_H */
|
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_DRIVER_H
|
#pragma once
|
||||||
# define LIBVIRT_DRIVER_H
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@ -126,5 +125,3 @@ int virSetConnectNWFilter(virConnectPtr conn);
|
|||||||
int virSetConnectNodeDev(virConnectPtr conn);
|
int virSetConnectNodeDev(virConnectPtr conn);
|
||||||
int virSetConnectSecret(virConnectPtr conn);
|
int virSetConnectSecret(virConnectPtr conn);
|
||||||
int virSetConnectStorage(virConnectPtr conn);
|
int virSetConnectStorage(virConnectPtr conn);
|
||||||
|
|
||||||
#endif /* LIBVIRT_DRIVER_H */
|
|
||||||
|
Loading…
Reference in New Issue
Block a user