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:
Daniel P. Berrange 2012-08-20 16:05:45 +01:00
parent beac09fd68
commit c29ce35af6
2 changed files with 20 additions and 23 deletions

View File

@ -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;
}

View File

@ -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__*/