mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 22:05:47 +00:00
src/esx: 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
d293ff8efc
commit
a037259055
@ -20,9 +20,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_DRIVER_H
|
||||
# define LIBVIRT_ESX_DRIVER_H
|
||||
#pragma once
|
||||
|
||||
int esxRegister(void);
|
||||
|
||||
#endif /* LIBVIRT_ESX_DRIVER_H */
|
||||
|
@ -20,11 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_INTERFACE_DRIVER_H
|
||||
# define LIBVIRT_ESX_INTERFACE_DRIVER_H
|
||||
#pragma once
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
extern virInterfaceDriver esxInterfaceDriver;
|
||||
|
||||
#endif /* LIBVIRT_ESX_INTERFACE_DRIVER_H */
|
||||
|
@ -20,11 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_NETWORK_DRIVER_H
|
||||
# define LIBVIRT_ESX_NETWORK_DRIVER_H
|
||||
#pragma once
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
extern virNetworkDriver esxNetworkDriver;
|
||||
|
||||
#endif /* LIBVIRT_ESX_NETWORK_DRIVER_H */
|
||||
|
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_PRIVATE_H
|
||||
# define LIBVIRT_ESX_PRIVATE_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "virerror.h"
|
||||
@ -41,5 +40,3 @@ typedef struct _esxPrivate {
|
||||
esxVI_Boolean supportsScreenshot;
|
||||
int32_t usedCpuTimeCounterId;
|
||||
} esxPrivate;
|
||||
|
||||
#endif /* LIBVIRT_ESX_PRIVATE_H */
|
||||
|
@ -19,11 +19,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_STORAGE_BACKEND_ISCSI_H
|
||||
# define LIBVIRT_ESX_STORAGE_BACKEND_ISCSI_H
|
||||
#pragma once
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
extern virStorageDriver esxStorageBackendISCSI;
|
||||
|
||||
#endif /* LIBVIRT_ESX_STORAGE_BACKEND_ISCSI_H */
|
||||
|
@ -20,11 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_STORAGE_BACKEND_VMFS_H
|
||||
# define LIBVIRT_ESX_STORAGE_BACKEND_VMFS_H
|
||||
#pragma once
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
extern virStorageDriver esxStorageBackendVMFS;
|
||||
|
||||
#endif /* LIBVIRT_ESX_STORAGE_BACKEND_VMFS_H */
|
||||
|
@ -20,11 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_STORAGE_DRIVER_H
|
||||
# define LIBVIRT_ESX_STORAGE_DRIVER_H
|
||||
#pragma once
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
extern virStorageDriver esxStorageDriver;
|
||||
|
||||
#endif /* LIBVIRT_ESX_STORAGE_DRIVER_H */
|
||||
|
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_STREAM_H
|
||||
# define LIBVIRT_ESX_STREAM_H
|
||||
#pragma once
|
||||
|
||||
#include "internal.h"
|
||||
#include "esx_private.h"
|
||||
@ -28,5 +27,3 @@
|
||||
int esxStreamOpenUpload(virStreamPtr stream, esxPrivate *priv, const char *url);
|
||||
int esxStreamOpenDownload(virStreamPtr stream, esxPrivate *priv, const char *url,
|
||||
unsigned long long offset, unsigned long long length);
|
||||
|
||||
#endif /* LIBVIRT_ESX_STREAM_H */
|
||||
|
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_UTIL_H
|
||||
# define LIBVIRT_ESX_UTIL_H
|
||||
#pragma once
|
||||
|
||||
#include <netdb.h>
|
||||
#include "internal.h"
|
||||
@ -69,5 +68,3 @@ void esxUtil_ReplaceSpecialWindowsPathChars(char *string);
|
||||
char *esxUtil_EscapeDatastoreItem(const char *string);
|
||||
|
||||
char *esxUtil_EscapeForXml(const char *string);
|
||||
|
||||
#endif /* LIBVIRT_ESX_UTIL_H */
|
||||
|
@ -20,8 +20,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_VI_H
|
||||
# define LIBVIRT_ESX_VI_H
|
||||
#pragma once
|
||||
|
||||
#include <libxml/tree.h>
|
||||
#include <libxml/xpath.h>
|
||||
@ -531,5 +530,3 @@ int esxVI_LookupStoragePoolNameByScsiLunKey(esxVI_Context *ctx, const char *key,
|
||||
char **poolName);
|
||||
|
||||
#include "esx_vi.generated.h"
|
||||
|
||||
#endif /* LIBVIRT_ESX_VI_H */
|
||||
|
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_VI_METHODS_H
|
||||
# define LIBVIRT_ESX_VI_METHODS_H
|
||||
#pragma once
|
||||
|
||||
#include "esx_vi.h"
|
||||
#include "esx_vi_types.h"
|
||||
@ -45,5 +44,3 @@ int esxVI_ValidateMigration
|
||||
esxVI_Event **output); /* optional, list */
|
||||
|
||||
#include "esx_vi_methods.generated.h"
|
||||
|
||||
#endif /* LIBVIRT_ESX_VI_METHODS_H */
|
||||
|
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_ESX_VI_TYPES_H
|
||||
# define LIBVIRT_ESX_VI_TYPES_H
|
||||
#pragma once
|
||||
|
||||
#include "virbuffer.h"
|
||||
|
||||
@ -419,5 +418,3 @@ int esxVI_Event_DeserializeList(xmlNodePtr node, esxVI_Event **list);
|
||||
|
||||
int esxVI_VirtualMachinePowerState_ConvertToLibvirt
|
||||
(esxVI_VirtualMachinePowerState powerState);
|
||||
|
||||
#endif /* LIBVIRT_ESX_VI_TYPES_H */
|
||||
|
Loading…
Reference in New Issue
Block a user