mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
Make qemuCapsProbeCommand static
The qemuCapsProbeCommand API is only used by the capabilities code, so can be static Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
beac09fd68
commit
c29ce35af6
@ -254,6 +254,26 @@ static const struct qemu_arch_info const arch_info_xen[] = {
|
||||
};
|
||||
|
||||
|
||||
static virCommandPtr
|
||||
qemuCapsProbeCommand(const char *qemu,
|
||||
qemuCapsPtr caps)
|
||||
{
|
||||
virCommandPtr cmd = virCommandNew(qemu);
|
||||
|
||||
if (caps) {
|
||||
if (qemuCapsGet(caps, QEMU_CAPS_NO_USER_CONFIG))
|
||||
virCommandAddArg(cmd, "-no-user-config");
|
||||
else if (qemuCapsGet(caps, QEMU_CAPS_NODEFCONFIG))
|
||||
virCommandAddArg(cmd, "-nodefconfig");
|
||||
}
|
||||
|
||||
virCommandAddEnvPassCommon(cmd);
|
||||
virCommandClearCaps(cmd);
|
||||
|
||||
return cmd;
|
||||
}
|
||||
|
||||
|
||||
/* Format is:
|
||||
* <machine> <desc> [(default)|(alias of <canonical>)]
|
||||
*/
|
||||
@ -1748,23 +1768,3 @@ qemuCapsGet(qemuCapsPtr caps,
|
||||
else
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
virCommandPtr
|
||||
qemuCapsProbeCommand(const char *qemu,
|
||||
qemuCapsPtr caps)
|
||||
{
|
||||
virCommandPtr cmd = virCommandNew(qemu);
|
||||
|
||||
if (caps) {
|
||||
if (qemuCapsGet(caps, QEMU_CAPS_NO_USER_CONFIG))
|
||||
virCommandAddArg(cmd, "-no-user-config");
|
||||
else if (qemuCapsGet(caps, QEMU_CAPS_NODEFCONFIG))
|
||||
virCommandAddArg(cmd, "-nodefconfig");
|
||||
}
|
||||
|
||||
virCommandAddEnvPassCommon(cmd);
|
||||
virCommandClearCaps(cmd);
|
||||
|
||||
return cmd;
|
||||
}
|
||||
|
@ -195,9 +195,6 @@ int qemuCapsParseHelpStr(const char *qemu,
|
||||
int qemuCapsParseDeviceStr(const char *str,
|
||||
qemuCapsPtr caps);
|
||||
|
||||
virCommandPtr qemuCapsProbeCommand(const char *qemu,
|
||||
qemuCapsPtr caps);
|
||||
|
||||
VIR_ENUM_DECL(qemuCaps);
|
||||
|
||||
#endif /* __QEMU_CAPABILITIES_H__*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user