[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 30/30] qmp-commands: move 'add-fd' doc to schema
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 30/30] qmp-commands: move 'add-fd' doc to schema |
Date: |
Thu, 22 Sep 2016 13:23:05 +0400 |
Signed-off-by: Marc-André Lureau <address@hidden>
---
docs/qmp-commands.txt | 28 ----------------------------
qapi-schema.json | 8 ++++++++
2 files changed, 8 insertions(+), 28 deletions(-)
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 52bec44..93858b2 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -673,34 +673,6 @@ Arguments:
Returns: Nothing on success
If "device" does not exist or cannot be determined, DeviceNotFound
-add-fd
--------
-
-Add a file descriptor, that was passed via SCM rights, to an fd set.
-
-Arguments:
-
-- "fdset-id": The ID of the fd set to add the file descriptor to.
- (json-int, optional)
-- "opaque": A free-form string that can be used to describe the fd.
- (json-string, optional)
-
-Return a json-object with the following information:
-
-- "fdset-id": The ID of the fd set that the fd was added to. (json-int)
-- "fd": The file descriptor that was received via SCM rights and added to the
- fd set. (json-int)
-
-Example:
-
--> { "execute": "add-fd", "arguments": { "fdset-id": 1 } }
-<- { "return": { "fdset-id": 1, "fd": 3 } }
-
-Notes:
-
-(1) The list of fd sets is shared by all monitor connections.
-(2) If "fdset-id" is not specified, a new fd set will be created.
-
remove-fd
---------
diff --git a/qapi-schema.json b/qapi-schema.json
index 7607b1a..bbbaf5c 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -4230,7 +4230,9 @@
# @opaque: #optional A free-form string that can be used to describe the fd.
#
# Returns: @AddfdInfo on success
+#
# If file descriptor was not received, FdNotSupplied
+#
# If @fdset-id is a negative value, InvalidParameterValue
#
# Notes: The list of fd sets is shared by all monitor connections.
@@ -4238,6 +4240,12 @@
# If @fdset-id is not specified, a new fd set will be created.
#
# Since: 1.2.0
+#
+# Example:
+#
+# -> { "execute": "add-fd", "arguments": { "fdset-id": 1 } }
+# <- { "return": { "fdset-id": 1, "fd": 3 } }
+#
##
{ 'command': 'add-fd', 'data': {'*fdset-id': 'int', '*opaque': 'str'},
'returns': 'AddfdInfo' }
--
2.10.0
- [Qemu-devel] [PATCH 20/30] qmp-commands: move 'device_del' doc to schema, (continued)
- [Qemu-devel] [PATCH 20/30] qmp-commands: move 'device_del' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 21/30] qmp-commands: move 'dump-guest-memory' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 22/30] qmp-commands: move 'query-dump-guest-memory-capability' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 23/30] qmp-commands: move 'dump-skeys' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 24/30] qmp-commands: move 'netdev_add' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 25/30] qmp-commands: move 'netdev_del' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 26/30] qmp-commands: move 'object-add' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 27/30] qmp-commands: move 'object-del' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 28/30] qmp-commands: move 'getfd' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 29/30] qmp-commands: move 'closefd' doc to schema, Marc-André Lureau, 2016/09/22
- [Qemu-devel] [PATCH 30/30] qmp-commands: move 'add-fd' doc to schema,
Marc-André Lureau <=
- Re: [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 2/5), Eric Blake, 2016/09/22