qemu-e2k/audio
Eric Blake bd1386cce1 cutils: Adjust signature of parse_uint[_full]
It's already confusing that we have two very similar functions for
wrapping the parse of a 64-bit unsigned value, differing mainly on
whether they permit leading '-'.  Adjust the signature of parse_uint()
and parse_uint_full() to be like all of qemu_strto*(): put the result
parameter last, use the same types (uint64_t and unsigned long long
have the same width, but are not always the same type), and mark
endptr const (this latter change only affects the rare caller of
parse_uint).  Adjust all callers in the tree.

While at it, note that since cutils.c already includes:

    QEMU_BUILD_BUG_ON(sizeof(int64_t) != sizeof(long long));

we are guaranteed that the result of parse_uint* cannot exceed
UINT64_MAX (or the build would have failed), so we can drop
pre-existing dead comparisons in opts-visitor.c that were never false.

Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Message-Id: <20230522190441.64278-8-eblake@redhat.com>
[eblake: Drop dead code spotted by Markus]
Signed-off-by: Eric Blake <eblake@redhat.com>
2023-06-02 12:27:19 -05:00
..
alsaaudio.c alsaaudio: reintroduce default recording settings 2023-03-06 10:30:23 +04:00
audio_int.h audio/dbus: there are no sender for p2p mode 2023-03-13 22:57:39 +04:00
audio_legacy.c cutils: Adjust signature of parse_uint[_full] 2023-06-02 12:27:19 -05:00
audio_template.h audio/pwaudio.c: Add Pipewire audio backend for QEMU 2023-05-05 13:23:08 +04:00
audio_win_int.c
audio_win_int.h
audio-hmp-cmds.c audio: Move HMP commands from monitor/ to audio/ 2023-02-04 07:56:54 +01:00
audio.c audio/pwaudio.c: Add Pipewire audio backend for QEMU 2023-05-05 13:23:08 +04:00
audio.h
coreaudio.m
dbusaudio.c audio/dbus: there are no sender for p2p mode 2023-03-13 22:57:39 +04:00
dsound_template.h
dsoundaudio.c
jackaudio.c
meson.build audio/pwaudio.c: Add Pipewire audio backend for QEMU 2023-05-05 13:23:08 +04:00
mixeng_template.h
mixeng.c audio: make recording packet length calculation exact 2023-03-06 10:30:23 +04:00
mixeng.h audio: make recording packet length calculation exact 2023-03-06 10:30:23 +04:00
noaudio.c
ossaudio.c
paaudio.c
pwaudio.c audio/pwaudio.c: Add Pipewire audio backend for QEMU 2023-05-05 13:23:08 +04:00
rate_template.h audio: make the resampling code greedy 2023-03-06 10:30:23 +04:00
sdlaudio.c
sndioaudio.c Fix non-first inclusions of qemu/osdep.h 2023-02-08 07:28:05 +01:00
spiceaudio.c
trace-events audio/pwaudio.c: Add Pipewire audio backend for QEMU 2023-05-05 13:23:08 +04:00
trace.h
wavaudio.c
wavcapture.c