]> git.proxmox.com Git - qemu.git/blobdiff - block.h
block: New change_media_cb() parameter load
[qemu.git] / block.h
diff --git a/block.h b/block.h
index 4b7fa35c0e057204c7f78c6ec2b80cdfa72ba6d2..16bfa0a3d6e814946853d1a4b530258c34e00dac 100644 (file)
--- a/block.h
+++ b/block.h
@@ -32,11 +32,12 @@ typedef struct QEMUSnapshotInfo {
 typedef struct BlockDevOps {
     /*
      * Runs when virtual media changed (monitor commands eject, change)
+     * Argument load is true on load and false on eject.
      * Beware: doesn't run when a host device's physical media
      * changes.  Sure would be useful if it did.
      * Device models with removable media must implement this callback.
      */
-    void (*change_media_cb)(void *opaque);
+    void (*change_media_cb)(void *opaque, bool load);
     /*
      * Is the virtual tray open?
      * Device models implement this only when the device has a tray.