Received: from eggs.gnu.org ([2001:4830:134:3::10]:38586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0GD-00032W-0Z for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0GB-00045p-Qz for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0GB-00045d-Ep for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:39 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 0612D3D96F for ; Thu, 22 Sep 2016 09:25:39 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 13:23:01 +0400 Message-Id: <20160922092305.2895-27-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 26/30] qmp-commands: move 'object-add' 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 | 17 ----------------- qapi-schema.json | 7 +++++++ 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 0bc2b1a..ff83ea2 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -193,23 +193,6 @@ Example: <- { "return": { "status": "active", "completed": 1024000, "total": 2048000 } } =20 -object-add ----------- - -Create QOM object. - -Arguments: - -- "qom-type": the object's QOM type, i.e. the class name (json-string) -- "id": the object's ID, must be unique (json-string) -- "props": a dictionary of object property values (optional, json-dict) - -Example: - --> { "execute": "object-add", "arguments": { "qom-type": "rng-random", "= id": "rng1", - "props": { "filename": "/dev/hwrng" } } } -<- { "return": {} } - object-del ---------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index 23da2d9..f9528eb 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3295,6 +3295,13 @@ # Error if @qom-type is not a valid class name # # Since: 2.0 +# +# Example: +# +# -> { "execute": "object-add", "arguments": { "qom-type": "rng-random",= "id": "rng1", +# "props": { "filename": "/dev/hwrng" } } } +# <- { "return": {} } +# ## { 'command': 'object-add', 'data': {'qom-type': 'str', 'id': 'str', '*props': 'any'} } --=20 2.10.0