mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
src/vbox: 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
2ad45811e2
commit
6d5e1df53f
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VBOX_MSCOMGLUE_H
|
||||
# define LIBVIRT_VBOX_MSCOMGLUE_H
|
||||
#pragma once
|
||||
|
||||
#include "vbox_CAPI_v3_2.h"
|
||||
|
||||
@ -44,5 +43,3 @@ nsresult vboxArrayGetWithPtrArg(vboxArray *array, void *self, void *getter, void
|
||||
nsresult vboxArrayGetWithUintArg(vboxArray *array, void *self, void *getter, PRUint32 arg);
|
||||
void vboxArrayRelease(vboxArray *array);
|
||||
#define vboxArrayUnalloc vboxArrayRelease
|
||||
|
||||
#endif /* LIBVIRT_VBOX_MSCOMGLUE_H */
|
||||
|
@ -17,8 +17,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VBOX_COMMON_H
|
||||
# define LIBVIRT_VBOX_COMMON_H
|
||||
#pragma once
|
||||
|
||||
#ifdef ___VirtualBox_CXPCOM_h
|
||||
# error this file should not be included after vbox_CAPI_v*.h
|
||||
@ -440,5 +439,3 @@ typedef nsISupports IKeyboard;
|
||||
result = -1; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif /* LIBVIRT_VBOX_COMMON_H */
|
||||
|
@ -22,8 +22,7 @@
|
||||
* additional information or have any questions.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VBOX_DRIVER_H
|
||||
# define LIBVIRT_VBOX_DRIVER_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
@ -38,5 +37,3 @@ int vboxStorageRegister(void);
|
||||
#if defined(VBOX_DRIVER)
|
||||
int vboxRegister(void);
|
||||
#endif
|
||||
|
||||
#endif /* LIBVIRT_VBOX_DRIVER_H */
|
||||
|
@ -16,13 +16,10 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VBOX_GET_DRIVER_H
|
||||
# define LIBVIRT_VBOX_GET_DRIVER_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
virHypervisorDriverPtr vboxGetHypervisorDriver(uint32_t uVersion);
|
||||
virNetworkDriverPtr vboxGetNetworkDriver(uint32_t uVersion);
|
||||
virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion);
|
||||
|
||||
#endif /* LIBVIRT_VBOX_GET_DRIVER_H */
|
||||
|
@ -19,13 +19,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VBOX_GLUE_H
|
||||
# define LIBVIRT_VBOX_GLUE_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WIN32
|
||||
# include "vbox_MSCOMGlue.h"
|
||||
#else
|
||||
# include "vbox_XPCOMCGlue.h"
|
||||
#endif
|
||||
|
||||
#endif /* LIBVIRT_VBOX_GLUE_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VBOX_SNAPSHOT_CONF_H
|
||||
# define LIBVIRT_VBOX_SNAPSHOT_CONF_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
@ -137,5 +136,3 @@ virVBoxSnapshotConfHardDiskPtrByLocation(virVBoxSnapshotConfMachinePtr machine,
|
||||
virVBoxSnapshotConfSnapshotPtr
|
||||
virVBoxSnapshotConfSnapshotByName(virVBoxSnapshotConfSnapshotPtr snapshot,
|
||||
const char *snapshotName);
|
||||
|
||||
#endif /* LIBVIRT_VBOX_SNAPSHOT_CONF_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VBOX_UNIFORMED_API_H
|
||||
# define LIBVIRT_VBOX_UNIFORMED_API_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
@ -559,5 +558,3 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
|
||||
void vbox50InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox52InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
||||
#endif /* LIBVIRT_VBOX_UNIFORMED_API_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user