Received: from eggs.gnu.org ([2001:4830:134:3::10]:38765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0Ge-0003To-OA for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:26:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0Gc-0004B8-1z for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:26:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0Gb-0004B0-Rl for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:26:05 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3EA93561DE for ; Thu, 22 Sep 2016 09:26:05 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 13:23:05 +0400 Message-Id: <20160922092305.2895-31-marcandre.lureau@redhat.com> In-Reply-To: <20160922092305.2895-1-marcandre.lureau@redhat.com> References: <20160922092305.2895-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 30/30] qmp-commands: move 'add-fd' doc to schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- 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, DeviceNotFo= und =20 -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 t= o 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 --------- =20 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' } --=20 2.10.0