]> git.proxmox.com Git - mirror_qemu.git/commit - audio/audio.c
qapi audio: Elide redundant has_FOO in generated C
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Nov 2022 16:06:49 +0000 (17:06 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 13 Dec 2022 17:31:37 +0000 (18:31 +0100)
commitceb19c8f684c7541ee878255ed686d92cfb90175
treed1dd6429bcc9b9a43958830f50bfde8f6417def2
parentb94ba62fd470715f6290b74c7a878fe2d640e9af
qapi audio: Elide redundant has_FOO in generated C

The has_FOO for pointer-valued FOO are redundant, except for arrays.
They are also a nuisance to work with.  Recent commit "qapi: Start to
elide redundant has_FOO in generated C" provided the means to elide
them step by step.  This is the step for qapi/audio.json.

Said commit explains the transformation in more detail.  The invariant
violations mentioned there do not occur here.

Additionally, helper get_str() loses its @has_dst parameter.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221104160712.3005652-8-armbru@redhat.com>
audio/alsaaudio.c
audio/audio.c
audio/audio_legacy.c
audio/ossaudio.c
audio/paaudio.c
audio/sndioaudio.c
audio/wavaudio.c
scripts/qapi/schema.py