mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-01 20:05:46 +00:00
tests: 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
78b2a03966
commit
c35d8a7d5e
@ -17,8 +17,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_QEMUMONITORTESTUTILS_H
|
||||
# define LIBVIRT_QEMUMONITORTESTUTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "domain_conf.h"
|
||||
#include "qemu/qemu_conf.h"
|
||||
@ -103,5 +102,3 @@ qemuAgentPtr qemuMonitorTestGetAgent(qemuMonitorTestPtr test);
|
||||
virDomainObjPtr qemuMonitorTestGetDomainObj(qemuMonitorTestPtr test);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(qemuMonitorTest, qemuMonitorTestFree);
|
||||
|
||||
#endif /* LIBVIRT_QEMUMONITORTESTUTILS_H */
|
||||
|
@ -16,11 +16,8 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_QEMUSECURITYTEST_H
|
||||
# define LIBVIRT_QEMUSECURITYTEST_H
|
||||
#pragma once
|
||||
|
||||
#define ENVVAR "LIBVIRT_QEMU_SECURITY_TEST"
|
||||
|
||||
extern int checkPaths(void);
|
||||
|
||||
#endif /* LIBVIRT_QEMUSECURITYTEST_H */
|
||||
|
@ -18,8 +18,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_TESTUTILS_H
|
||||
# define LIBVIRT_TESTUTILS_H
|
||||
#pragma once
|
||||
|
||||
#include "viralloc.h"
|
||||
#include "virfile.h"
|
||||
@ -163,5 +162,3 @@ int testCompareDomXML2XMLFiles(virCapsPtr caps,
|
||||
bool live,
|
||||
unsigned int parseFlags,
|
||||
testCompareDomXML2XMLResult expectResult);
|
||||
|
||||
#endif /* LIBVIRT_TESTUTILS_H */
|
||||
|
@ -14,8 +14,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_TESTUTILSHOSTCPUS_H
|
||||
# define LIBVIRT_TESTUTILSHOSTCPUS_H
|
||||
#pragma once
|
||||
|
||||
#include "conf/cpu_conf.h"
|
||||
#include "internal.h"
|
||||
@ -165,5 +164,3 @@ testUtilsHostCpusGetDefForArch(virArch arch)
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif /* LIBVIRT_TESTUTILSHOSTCPUS_H */
|
||||
|
@ -14,8 +14,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_TESTUTILSLXC_H
|
||||
# define LIBVIRT_TESTUTILSLXC_H
|
||||
#pragma once
|
||||
|
||||
#include "capabilities.h"
|
||||
|
||||
@ -23,5 +22,3 @@
|
||||
#define FAKEDEVDIR1 "/fakedevdir1/bla/fasl"
|
||||
|
||||
virCapsPtr testLXCCapsInit(void);
|
||||
|
||||
#endif /* LIBVIRT_TESTUTILSLXC_H */
|
||||
|
@ -14,8 +14,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_TESTUTILSQEMU_H
|
||||
# define LIBVIRT_TESTUTILSQEMU_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WITH_QEMU
|
||||
|
||||
@ -108,5 +107,3 @@ int testQemuInfoSetArgs(struct testQemuInfo *info,
|
||||
void testQemuInfoClear(struct testQemuInfo *info);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* LIBVIRT_TESTUTILSQEMU_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_TESTUTILSQEMUSCHEMA_H
|
||||
# define LIBVIRT_TESTUTILSQEMUSCHEMA_H
|
||||
#pragma once
|
||||
|
||||
#include "virhash.h"
|
||||
#include "virjson.h"
|
||||
@ -34,5 +33,3 @@ testQEMUSchemaGetLatest(void);
|
||||
|
||||
virHashTablePtr
|
||||
testQEMUSchemaLoad(void);
|
||||
|
||||
#endif /* LIBVIRT_TESTUTILSQEMUSCHEMA_H */
|
||||
|
@ -14,8 +14,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_TESTUTILSXEN_H
|
||||
# define LIBVIRT_TESTUTILSXEN_H
|
||||
#pragma once
|
||||
|
||||
#include "capabilities.h"
|
||||
#ifdef WITH_LIBXL
|
||||
@ -23,5 +22,3 @@
|
||||
#endif
|
||||
|
||||
virCapsPtr testXLInitCaps(void);
|
||||
|
||||
#endif /* LIBVIRT_TESTUTILSXEN_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRFILEWRAPPER_H
|
||||
# define LIBVIRT_VIRFILEWRAPPER_H
|
||||
#pragma once
|
||||
|
||||
void
|
||||
virFileWrapperAddPrefix(const char *prefix,
|
||||
@ -28,5 +27,3 @@ virFileWrapperRemovePrefix(const char *prefix);
|
||||
|
||||
void
|
||||
virFileWrapperClearPrefixes(void);
|
||||
|
||||
#endif /* LIBVIRT_VIRFILEWRAPPER_H */
|
||||
|
@ -14,8 +14,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRHASHDATA_H
|
||||
# define LIBVIRT_VIRHASHDATA_H
|
||||
#pragma once
|
||||
|
||||
const char *uuids[] = {
|
||||
/* [ 2] */ "a9b02f96-e430-4f7c-a7ff-a647d080447a",
|
||||
@ -283,5 +282,3 @@ const char *uuids_new[] = {
|
||||
"5920cc9d-62a3-4772-9e73-eb97f0bc483c",
|
||||
"53c215dd-bdba-4fdc-887a-86ab6f860df4",
|
||||
};
|
||||
|
||||
#endif /* LIBVIRT_VIRHASHDATA_H */
|
||||
|
@ -19,8 +19,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRMOCK_H
|
||||
# define LIBVIRT_VIRMOCK_H
|
||||
#pragma once
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
# include <dlfcn.h>
|
||||
@ -289,5 +288,3 @@
|
||||
abort(); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif /* LIBVIRT_VIRMOCK_H */
|
||||
|
@ -16,8 +16,7 @@
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRNETTLSHELPERS_H
|
||||
# define LIBVIRT_VIRNETTLSHELPERS_H
|
||||
#pragma once
|
||||
|
||||
#include <gnutls/gnutls.h>
|
||||
#include <gnutls/x509.h>
|
||||
@ -78,5 +77,3 @@ void testTLSInit(const char *keyfile);
|
||||
void testTLSCleanup(const char *keyfile);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* LIBVIRT_VIRNETTLSHELPERS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user