aboutsummaryrefslogtreecommitdiff
path: root/hw/sd.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-09-06 18:58:59 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-12 15:17:22 +0200
commit7d4b4ba5c2bae99d44f265884b567ae63947bb4a (patch)
tree656e821d5db201a05fd20e4fd69069e0e79a850f /hw/sd.c
parentab359cd17e77163b672c5fc129cf4bcd0a3b38ce (diff)
downloadqemu-7d4b4ba5c2bae99d44f265884b567ae63947bb4a.zip
qemu-7d4b4ba5c2bae99d44f265884b567ae63947bb4a.tar.gz
qemu-7d4b4ba5c2bae99d44f265884b567ae63947bb4a.tar.bz2
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>
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd.c b/hw/sd.c
index 1af62b2..10e26ad 100644
--- a/hw/sd.c
+++ b/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;