qemu: command: Drop qemuBuildAudioCommandLine thin wrapper

Rename qemuBuildAudioCommandLineArgs to qemuBuildAudioCommandLine and
fix the arguments.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2022-06-22 15:41:33 +02:00
parent fb9eece471
commit d348a4c8b6

View File

@ -8057,8 +8057,8 @@ qemuBuildAudioCommandLineArg(virCommand *cmd,
} }
static int static int
qemuBuildAudioCommandLineArgs(virCommand *cmd, qemuBuildAudioCommandLine(virCommand *cmd,
virDomainDef *def) virDomainDef *def)
{ {
size_t i; size_t i;
for (i = 0; i < def->naudios; i++) { for (i = 0; i < def->naudios; i++) {
@ -8069,15 +8069,6 @@ qemuBuildAudioCommandLineArgs(virCommand *cmd,
} }
static int
qemuBuildAudioCommandLine(virCommand *cmd,
virDomainDef *def,
virQEMUCaps *qemuCaps G_GNUC_UNUSED)
{
return qemuBuildAudioCommandLineArgs(cmd, def);
}
static int static int
qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfig *cfg G_GNUC_UNUSED, qemuBuildGraphicsSDLCommandLine(virQEMUDriverConfig *cfg G_GNUC_UNUSED,
virCommand *cmd, virCommand *cmd,
@ -10530,7 +10521,7 @@ qemuBuildCommandLine(virDomainObj *vm,
if (qemuBuildInputCommandLine(cmd, def, qemuCaps) < 0) if (qemuBuildInputCommandLine(cmd, def, qemuCaps) < 0)
return NULL; return NULL;
if (qemuBuildAudioCommandLine(cmd, def, qemuCaps) < 0) if (qemuBuildAudioCommandLine(cmd, def) < 0)
return NULL; return NULL;
if (qemuBuildGraphicsCommandLine(cfg, cmd, def, qemuCaps) < 0) if (qemuBuildGraphicsCommandLine(cfg, cmd, def, qemuCaps) < 0)