mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-23 06:23:10 +00:00
util: host: 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
4b72307b2f
commit
2edd1c1d86
@ -19,8 +19,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRHOSTCPU_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRHOSTCPU_H
|
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "virarch.h"
|
#include "virarch.h"
|
||||||
@ -79,5 +78,3 @@ int virHostCPUGetMSR(unsigned long index,
|
|||||||
uint64_t *msr);
|
uint64_t *msr);
|
||||||
|
|
||||||
virHostCPUTscInfoPtr virHostCPUGetTscInfo(void);
|
virHostCPUTscInfoPtr virHostCPUGetTscInfo(void);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRHOSTCPU_H */
|
|
||||||
|
@ -23,8 +23,7 @@
|
|||||||
# error "virhostcpupriv.h may only be included by virhostcpu.c or test suites"
|
# error "virhostcpupriv.h may only be included by virhostcpu.c or test suites"
|
||||||
#endif /* LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW */
|
#endif /* LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW */
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRHOSTCPUPRIV_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRHOSTCPUPRIV_H
|
|
||||||
|
|
||||||
#include "virhostcpu.h"
|
#include "virhostcpu.h"
|
||||||
|
|
||||||
@ -43,5 +42,3 @@ int virHostCPUGetStatsLinux(FILE *procstat,
|
|||||||
virNodeCPUStatsPtr params,
|
virNodeCPUStatsPtr params,
|
||||||
int *nparams);
|
int *nparams);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRHOSTCPUPRIV_H */
|
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRHOSTDEV_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRHOSTDEV_H
|
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
@ -202,5 +201,3 @@ int virHostdevPCINodeDeviceReAttach(virHostdevManagerPtr mgr,
|
|||||||
int virHostdevPCINodeDeviceReset(virHostdevManagerPtr mgr,
|
int virHostdevPCINodeDeviceReset(virHostdevManagerPtr mgr,
|
||||||
virPCIDevicePtr pci)
|
virPCIDevicePtr pci)
|
||||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRHOSTDEV_H */
|
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRHOSTMEM_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRHOSTMEM_H
|
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
@ -54,5 +53,3 @@ int virHostMemAllocPages(unsigned int npages,
|
|||||||
int startCell,
|
int startCell,
|
||||||
unsigned int cellCount,
|
unsigned int cellCount,
|
||||||
bool add);
|
bool add);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRHOSTMEM_H */
|
|
||||||
|
Loading…
Reference in New Issue
Block a user