src/hyperv: 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-07 15:20:25 -05:00 committed by Ján Tomko
parent a037259055
commit 07729eedf3
6 changed files with 46 additions and 64 deletions

View File

@ -20,9 +20,6 @@
*
*/
#ifndef LIBVIRT_HYPERV_DRIVER_H
# define LIBVIRT_HYPERV_DRIVER_H
#pragma once
int hypervRegister(void);
#endif /* LIBVIRT_HYPERV_DRIVER_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef LIBVIRT_HYPERV_PRIVATE_H
# define LIBVIRT_HYPERV_PRIVATE_H
#pragma once
#include "internal.h"
#include "virerror.h"
@ -40,5 +39,3 @@ struct _hypervPrivate {
WsManClient *client;
hypervWmiVersion wmiVersion;
};
#endif /* LIBVIRT_HYPERV_PRIVATE_H */

View File

@ -19,8 +19,7 @@
*
*/
#ifndef LIBVIRT_HYPERV_UTIL_H
# define LIBVIRT_HYPERV_UTIL_H
#pragma once
#include "internal.h"
#include "viruri.h"
@ -34,5 +33,3 @@ struct _hypervParsedUri {
int hypervParseUri(hypervParsedUri **parsedUri, virURIPtr uri);
void hypervFreeParsedUri(hypervParsedUri **parsedUri);
#endif /* LIBVIRT_HYPERV_UTIL_H */

View File

@ -21,8 +21,7 @@
*
*/
#ifndef LIBVIRT_HYPERV_WMI_H
# define LIBVIRT_HYPERV_WMI_H
#pragma once
#include "virbuffer.h"
#include "hyperv_private.h"
@ -252,5 +251,3 @@ int hypervMsvmComputerSystemToDomain(virConnectPtr conn,
int hypervMsvmComputerSystemFromDomain(virDomainPtr domain,
Msvm_ComputerSystem **computerSystem);
#endif /* LIBVIRT_HYPERV_WMI_H */

View File

@ -21,8 +21,7 @@
*
*/
#ifndef LIBVIRT_HYPERV_WMI_CLASSES_H
# define LIBVIRT_HYPERV_WMI_CLASSES_H
#pragma once
#include "internal.h"
#include "openwsman.h"
@ -139,5 +138,3 @@ struct _hypervWmiClassInfoList {
};
#include "hyperv_wmi_classes.generated.h"
#endif /* LIBVIRT_HYPERV_WMI_CLASSES_H */

View File

@ -19,8 +19,7 @@
*
*/
#ifndef LIBVIRT_OPENWSMAN_H
# define LIBVIRT_OPENWSMAN_H
#pragma once
/* Workaround openwsman <= 2.2.6 unconditionally defining optarg. Just pretend
* that u/os.h was already included. Need to explicitly include time.h because
@ -46,5 +45,3 @@
/* wsman-xml.h */
WsXmlDocH ws_xml_create_doc(const char *rootNsUri, const char *rootName);
WsXmlNodeH xml_parser_get_root(WsXmlDocH doc);
#endif /* LIBVIRT_OPENWSMAN_H */