aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 16:25:25 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:19:49 +0100
commit73c41bfd314fe3319e35325162a7e9ded310fc4f (patch)
tree53506dac5dac0838af9adacd971a2b73008ba127
parentaa496f9812a7fb880f8782c8c3956183e759fbf0 (diff)
downloadqemu-73c41bfd314fe3319e35325162a7e9ded310fc4f.zip
qemu-73c41bfd314fe3319e35325162a7e9ded310fc4f.tar.gz
qemu-73c41bfd314fe3319e35325162a7e9ded310fc4f.tar.bz2
qmp-events: move 'RTC_CHANGE' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-events.txt18
-rw-r--r--qapi/event.json9
2 files changed, 9 insertions, 18 deletions
diff --git a/docs/qmp-events.txt b/docs/qmp-events.txt
index 8e709ea..3576064 100644
--- a/docs/qmp-events.txt
+++ b/docs/qmp-events.txt
@@ -166,24 +166,6 @@ Flush operation:
Note: this event is rate-limited.
-RTC_CHANGE
-----------
-
-Emitted when the guest changes the RTC time.
-
-Data:
-
-- "offset": Offset between base RTC clock (as specified by -rtc base), and
-new RTC clock value (json-number)
-
-Example:
-
-{ "event": "RTC_CHANGE",
- "data": { "offset": 78 },
- "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
-
-Note: this event is rate-limited.
-
SPICE_CONNECTED
---------------
diff --git a/qapi/event.json b/qapi/event.json
index 3ac4eb1..e2ab2c7 100644
--- a/qapi/event.json
+++ b/qapi/event.json
@@ -141,7 +141,16 @@
# @offset: offset between base RTC clock (as specified by -rtc base), and
# new RTC clock value
#
+# Note: This event is rate-limited.
+#
# Since: 0.13.0
+#
+# Example:
+#
+# <- { "event": "RTC_CHANGE",
+# "data": { "offset": 78 },
+# "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
+#
##
{ 'event': 'RTC_CHANGE',
'data': { 'offset': 'int' } }