1
0
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:
Jonathon Jongsma 2019-06-18 11:13:09 -05:00 committed by Ján Tomko
parent 2ad45811e2
commit 6d5e1df53f
7 changed files with 106 additions and 127 deletions

View File

@ -19,8 +19,7 @@
* *
*/ */
#ifndef LIBVIRT_VBOX_MSCOMGLUE_H #pragma once
# define LIBVIRT_VBOX_MSCOMGLUE_H
#include "vbox_CAPI_v3_2.h" #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); nsresult vboxArrayGetWithUintArg(vboxArray *array, void *self, void *getter, PRUint32 arg);
void vboxArrayRelease(vboxArray *array); void vboxArrayRelease(vboxArray *array);
#define vboxArrayUnalloc vboxArrayRelease #define vboxArrayUnalloc vboxArrayRelease
#endif /* LIBVIRT_VBOX_MSCOMGLUE_H */

View File

@ -17,8 +17,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VBOX_COMMON_H #pragma once
# define LIBVIRT_VBOX_COMMON_H
#ifdef ___VirtualBox_CXPCOM_h #ifdef ___VirtualBox_CXPCOM_h
# error this file should not be included after vbox_CAPI_v*.h # error this file should not be included after vbox_CAPI_v*.h
@ -440,5 +439,3 @@ typedef nsISupports IKeyboard;
result = -1; \ result = -1; \
} \ } \
} while (0) } while (0)
#endif /* LIBVIRT_VBOX_COMMON_H */

View File

@ -22,8 +22,7 @@
* additional information or have any questions. * additional information or have any questions.
*/ */
#ifndef LIBVIRT_VBOX_DRIVER_H #pragma once
# define LIBVIRT_VBOX_DRIVER_H
#include "internal.h" #include "internal.h"
@ -38,5 +37,3 @@ int vboxStorageRegister(void);
#if defined(VBOX_DRIVER) #if defined(VBOX_DRIVER)
int vboxRegister(void); int vboxRegister(void);
#endif #endif
#endif /* LIBVIRT_VBOX_DRIVER_H */

View File

@ -16,13 +16,10 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VBOX_GET_DRIVER_H #pragma once
# define LIBVIRT_VBOX_GET_DRIVER_H
#include "internal.h" #include "internal.h"
virHypervisorDriverPtr vboxGetHypervisorDriver(uint32_t uVersion); virHypervisorDriverPtr vboxGetHypervisorDriver(uint32_t uVersion);
virNetworkDriverPtr vboxGetNetworkDriver(uint32_t uVersion); virNetworkDriverPtr vboxGetNetworkDriver(uint32_t uVersion);
virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion); virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion);
#endif /* LIBVIRT_VBOX_GET_DRIVER_H */

View File

@ -19,13 +19,10 @@
* *
*/ */
#ifndef LIBVIRT_VBOX_GLUE_H #pragma once
# define LIBVIRT_VBOX_GLUE_H
#ifdef WIN32 #ifdef WIN32
# include "vbox_MSCOMGlue.h" # include "vbox_MSCOMGlue.h"
#else #else
# include "vbox_XPCOMCGlue.h" # include "vbox_XPCOMCGlue.h"
#endif #endif
#endif /* LIBVIRT_VBOX_GLUE_H */

View File

@ -16,8 +16,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VBOX_SNAPSHOT_CONF_H #pragma once
# define LIBVIRT_VBOX_SNAPSHOT_CONF_H
#include "internal.h" #include "internal.h"
@ -137,5 +136,3 @@ virVBoxSnapshotConfHardDiskPtrByLocation(virVBoxSnapshotConfMachinePtr machine,
virVBoxSnapshotConfSnapshotPtr virVBoxSnapshotConfSnapshotPtr
virVBoxSnapshotConfSnapshotByName(virVBoxSnapshotConfSnapshotPtr snapshot, virVBoxSnapshotConfSnapshotByName(virVBoxSnapshotConfSnapshotPtr snapshot,
const char *snapshotName); const char *snapshotName);
#endif /* LIBVIRT_VBOX_SNAPSHOT_CONF_H */

View File

@ -16,8 +16,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VBOX_UNIFORMED_API_H #pragma once
# define LIBVIRT_VBOX_UNIFORMED_API_H
#include "internal.h" #include "internal.h"
@ -559,5 +558,3 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
void vbox50InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox50InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
void vbox52InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox52InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
#endif /* LIBVIRT_VBOX_UNIFORMED_API_H */