* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_HYPERVISOR_H
-# define LIBVIRT_DRIVER_HYPERVISOR_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvConnectURIProbe)(char **uri);
virDrvNodeGetSEVInfo nodeGetSEVInfo;
virDrvDomainGetLaunchSecurityInfo domainGetLaunchSecurityInfo;
};
-
-
-#endif /* LIBVIRT_DRIVER_HYPERVISOR_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_INTERFACE_H
-# define LIBVIRT_DRIVER_INTERFACE_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvConnectNumOfInterfaces)(virConnectPtr conn);
virDrvInterfaceChangeCommit interfaceChangeCommit;
virDrvInterfaceChangeRollback interfaceChangeRollback;
};
-
-
-#endif /* LIBVIRT_DRIVER_INTERFACE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_NETWORK_H
-# define LIBVIRT_DRIVER_NETWORK_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvConnectNumOfNetworks)(virConnectPtr conn);
virDrvNetworkIsPersistent networkIsPersistent;
virDrvNetworkGetDHCPLeases networkGetDHCPLeases;
};
-
-
-#endif /* LIBVIRT_DRIVER_NETWORK_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_NODEDEV_H
-# define LIBVIRT_DRIVER_NODEDEV_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvNodeNumOfDevices)(virConnectPtr conn,
virDrvNodeDeviceCreateXML nodeDeviceCreateXML;
virDrvNodeDeviceDestroy nodeDeviceDestroy;
};
-
-
-#endif /* LIBVIRT_DRIVER_NODEDEV_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_NWFILTER_H
-# define LIBVIRT_DRIVER_NWFILTER_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvConnectNumOfNWFilters)(virConnectPtr conn);
virDrvNWFilterBindingDelete nwfilterBindingDelete;
virDrvNWFilterBindingGetXMLDesc nwfilterBindingGetXMLDesc;
};
-
-
-#endif /* LIBVIRT_DRIVER_NWFILTER_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_SECRET_H
-# define LIBVIRT_DRIVER_SECRET_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
enum {
/* This getValue call is inside libvirt, override the "private" flag.
virDrvConnectSecretEventRegisterAny connectSecretEventRegisterAny;
virDrvConnectSecretEventDeregisterAny connectSecretEventDeregisterAny;
};
-
-
-#endif /* LIBVIRT_DRIVER_SECRET_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_STATE_H
-# define LIBVIRT_DRIVER_STATE_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvStateInitialize)(bool privileged,
virDrvStateReload stateReload;
virDrvStateStop stateStop;
};
-
-
-#endif /* LIBVIRT_DRIVER_STATE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_STORAGE_H
-# define LIBVIRT_DRIVER_STORAGE_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvConnectNumOfStoragePools)(virConnectPtr conn);
virDrvStoragePoolIsActive storagePoolIsActive;
virDrvStoragePoolIsPersistent storagePoolIsPersistent;
};
-
-
-#endif /* LIBVIRT_DRIVER_STORAGE_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_STREAM_H
-# define LIBVIRT_DRIVER_STREAM_H
+#pragma once
-# ifndef __VIR_DRIVER_H_INCLUDES___
-# error "Don't include this file directly, only use driver.h"
-# endif
+#ifndef __VIR_DRIVER_H_INCLUDES___
+# error "Don't include this file directly, only use driver.h"
+#endif
typedef int
(*virDrvStreamSend)(virStreamPtr st,
virDrvStreamFinish streamFinish;
virDrvStreamAbort streamAbort;
};
-
-
-#endif /* LIBVIRT_DRIVER_STREAM_H */
* <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBVIRT_DRIVER_H
-# define LIBVIRT_DRIVER_H
+#pragma once
-# include <unistd.h>
+#include <unistd.h>
-# include "internal.h"
-# include "libvirt_internal.h"
-# include "viruri.h"
+#include "internal.h"
+#include "libvirt_internal.h"
+#include "viruri.h"
/* Status codes returned from driver open call. */
* != 0 Feature is supported.
* 0 Feature is not supported.
*/
-# define VIR_DRV_SUPPORTS_FEATURE(drv, conn, feature) \
+#define VIR_DRV_SUPPORTS_FEATURE(drv, conn, feature) \
((drv)->connectSupportsFeature ? \
(drv)->connectSupportsFeature((conn), (feature)) > 0 : 0)
-# define __VIR_DRIVER_H_INCLUDES___
+#define __VIR_DRIVER_H_INCLUDES___
-# include "driver-hypervisor.h"
-# include "driver-interface.h"
-# include "driver-network.h"
-# include "driver-nodedev.h"
-# include "driver-nwfilter.h"
-# include "driver-secret.h"
-# include "driver-state.h"
-# include "driver-stream.h"
-# include "driver-storage.h"
+#include "driver-hypervisor.h"
+#include "driver-interface.h"
+#include "driver-network.h"
+#include "driver-nodedev.h"
+#include "driver-nwfilter.h"
+#include "driver-secret.h"
+#include "driver-state.h"
+#include "driver-stream.h"
+#include "driver-storage.h"
-# undef __VIR_DRIVER_H_INCLUDES___
+#undef __VIR_DRIVER_H_INCLUDES___
typedef struct _virConnectDriver virConnectDriver;
typedef virConnectDriver *virConnectDriverPtr;
int virSetConnectNodeDev(virConnectPtr conn);
int virSetConnectSecret(virConnectPtr conn);
int virSetConnectStorage(virConnectPtr conn);
-
-#endif /* LIBVIRT_DRIVER_H */