mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
block: New change_media_cb() parameter load
To let device models distinguish between eject and load. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
ab359cd17e
commit
7d4b4ba5c2
6 changed files with 12 additions and 11 deletions
2
hw/sd.c
2
hw/sd.c
|
@ -419,7 +419,7 @@ static void sd_reset(SDState *sd, BlockDriverState *bdrv)
|
|||
sd->pwd_len = 0;
|
||||
}
|
||||
|
||||
static void sd_cardchange(void *opaque)
|
||||
static void sd_cardchange(void *opaque, bool load)
|
||||
{
|
||||
SDState *sd = opaque;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue