src/vz: 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:12 -05:00 committed by Ján Tomko
parent adfe09bc05
commit faceedaf71
3 changed files with 21 additions and 30 deletions

View File

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

View File

@ -20,8 +20,7 @@
*
*/
#ifndef LIBVIRT_VZ_SDK_H
# define LIBVIRT_VZ_SDK_H
#pragma once
#include <Parallels.h>
@ -94,5 +93,3 @@ PRL_HANDLE
prlsdkSdkDomainLookupByName(vzDriverPtr driver, const char *name);
int prlsdkCancelJob(virDomainObjPtr dom);
int prlsdkResizeImage(virDomainObjPtr dom, virDomainDiskDefPtr disk, unsigned long long newsize);
#endif /* LIBVIRT_VZ_SDK_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef LIBVIRT_VZ_UTILS_H
# define LIBVIRT_VZ_UTILS_H
#pragma once
#include <Parallels.h>
@ -146,7 +145,7 @@ vzGetDefaultSCSIModel(vzDriverPtr driver,
int vzCheckUnsupportedGraphics(virDomainGraphicsDefPtr gr);
# define PARALLELS_BLOCK_STATS_FOREACH(OP) \
define PARALLELS_BLOCK_STATS_FOREACH(OP) \
OP(rd_req, VIR_DOMAIN_BLOCK_STATS_READ_REQ, "read_requests") \
OP(rd_bytes, VIR_DOMAIN_BLOCK_STATS_READ_BYTES, "read_total") \
OP(wr_req, VIR_DOMAIN_BLOCK_STATS_WRITE_REQ, "write_requests") \
@ -158,5 +157,3 @@ void
vzDomainObjEndJob(virDomainObjPtr dom);
int
vzDomainJobUpdateTime(vzDomainJobObjPtr job);
#endif /* LIBVIRT_VZ_UTILS_H */