Patchwork [2/3] QMP: Documentation for the BLOCK_MEDIA_EJECT event

login
register
mail settings
Submitter Luiz Capitulino
Date Jan. 12, 2011, 6:22 p.m.
Message ID <1294856523-4288-3-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/78603/
State New
Headers show

Comments

Luiz Capitulino - Jan. 12, 2011, 6:22 p.m.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 QMP/qmp-events.txt |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

Patch

diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
index 0ce5d4e..d13b17a 100644
--- a/QMP/qmp-events.txt
+++ b/QMP/qmp-events.txt
@@ -1,6 +1,21 @@ 
                    QEMU Monitor Protocol Events
                    ============================
 
+BLOCK_MEDIA_EJECT
+-----------------
+
+Emitted when a disk media (such as a CDROM or floppy) is ejected.
+
+Data:
+
+- "device": device name (json-string)
+
+Example:
+
+{ "event": "BLOCK_MEDIA_EJECT",
+    "data": { "device": "ide1-cd0" },
+    "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
+
 BLOCK_IO_ERROR
 --------------