mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
qemu: Move some functions to qemu_capspriv.h
This header file has been created so that we can expose internal functions to the test suite without making them public: those in qemu_capabilities.h bearing the comment /* Only for use by test suite */ are obvious candidates for being moved over.
This commit is contained in:
parent
611ddefc16
commit
2e5de445a1
@ -473,11 +473,6 @@ bool virQEMUCapsIsValid(virQEMUCapsPtr qemuCaps,
|
||||
void virQEMUCapsFilterByMachineType(virQEMUCapsPtr qemuCaps,
|
||||
const char *machineType);
|
||||
|
||||
/* Only for use by test suite */
|
||||
void virQEMUCapsSetGICCapabilities(virQEMUCapsPtr qemuCaps,
|
||||
virGICCapability *capabilities,
|
||||
size_t ncapabilities);
|
||||
|
||||
virQEMUCapsCachePtr virQEMUCapsCacheNew(const char *libDir,
|
||||
const char *cacheDir,
|
||||
uid_t uid, gid_t gid);
|
||||
@ -499,20 +494,6 @@ int virQEMUCapsGetDefaultVersion(virCapsPtr caps,
|
||||
virQEMUCapsCachePtr capsCache,
|
||||
unsigned int *version);
|
||||
|
||||
/* Only for use by test suite */
|
||||
int virQEMUCapsParseHelpStr(const char *qemu,
|
||||
const char *str,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
unsigned int *version,
|
||||
bool *is_kvm,
|
||||
unsigned int *kvm_version,
|
||||
bool check_yajl,
|
||||
const char *qmperr);
|
||||
/* Only for use by test suite */
|
||||
int virQEMUCapsParseDeviceStr(virQEMUCapsPtr qemuCaps, const char *str);
|
||||
/* Only for use by test suite */
|
||||
void virQEMUCapsInitQMPBasicArch(virQEMUCapsPtr qemuCaps);
|
||||
|
||||
VIR_ENUM_DECL(virQEMUCaps);
|
||||
|
||||
bool virQEMUCapsSupportsChardev(const virDomainDef *def,
|
||||
|
@ -83,6 +83,9 @@ virQEMUCapsInitCPUModel(virQEMUCapsPtr qemuCaps,
|
||||
virDomainVirtType type,
|
||||
virCPUDefPtr cpu);
|
||||
|
||||
void
|
||||
virQEMUCapsInitQMPBasicArch(virQEMUCapsPtr qemuCaps);
|
||||
|
||||
void
|
||||
virQEMUCapsSetCPUModelInfo(virQEMUCapsPtr qemuCaps,
|
||||
virDomainVirtType type,
|
||||
@ -92,4 +95,23 @@ virCPUDefPtr
|
||||
virQEMUCapsProbeHostCPUForEmulator(virCapsPtr caps,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
virDomainVirtType type);
|
||||
|
||||
void
|
||||
virQEMUCapsSetGICCapabilities(virQEMUCapsPtr qemuCaps,
|
||||
virGICCapability *capabilities,
|
||||
size_t ncapabilities);
|
||||
|
||||
int
|
||||
virQEMUCapsParseHelpStr(const char *qemu,
|
||||
const char *str,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
unsigned int *version,
|
||||
bool *is_kvm,
|
||||
unsigned int *kvm_version,
|
||||
bool check_yajl,
|
||||
const char *qmperr);
|
||||
|
||||
int
|
||||
virQEMUCapsParseDeviceStr(virQEMUCapsPtr qemuCaps,
|
||||
const char *str);
|
||||
#endif
|
||||
|
@ -8,6 +8,10 @@
|
||||
# include <stdlib.h>
|
||||
|
||||
# include "qemu/qemu_capabilities.h"
|
||||
# define __QEMU_CAPSPRIV_H_ALLOW__
|
||||
# include "qemu/qemu_capspriv.h"
|
||||
# undef __QEMU_CAPSPRIV_H_ALLOW__
|
||||
|
||||
# include "viralloc.h"
|
||||
# include "virstring.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user