mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
replay: Simplify setting replay blockers
replay_add_blocker() takes an Error *. All callers pass one created like this: error_setg(&blocker, QERR_REPLAY_NOT_SUPPORTED, "some feature"); Folding this into replay_add_blocker() simplifies the callers, losing a bit of generality we haven't needed in more than six years. Since there are no other uses of macro QERR_REPLAY_NOT_SUPPORTED, replace the remaining one by its expansion, and drop the macro. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230207075115.1525-10-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
c40233593e
commit
0ec8384f83
6 changed files with 11 additions and 20 deletions
|
@ -12,7 +12,7 @@ void replay_input_sync_event(void)
|
|||
qemu_input_event_sync_impl();
|
||||
}
|
||||
|
||||
void replay_add_blocker(Error *reason)
|
||||
void replay_add_blocker(const char *feature)
|
||||
{
|
||||
}
|
||||
void replay_audio_in(size_t *recorded, void *samples, size_t *wpos, size_t size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue