From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP4Lg-0003Hm-9Q for qemu-devel@nongnu.org; Tue, 11 Aug 2015 03:51:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZP4Le-00014P-Hz for qemu-devel@nongnu.org; Tue, 11 Aug 2015 03:51:52 -0400 From: Wen Congyang Date: Tue, 11 Aug 2015 15:51:24 +0800 Message-ID: <1439279489-13338-2-git-send-email-wency@cn.fujitsu.com> In-Reply-To: <1439279489-13338-1-git-send-email-wency@cn.fujitsu.com> References: <1439279489-13338-1-git-send-email-wency@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [Patch for-2.5 v2 1/6] QAPI: move InetSocketAddress to qapi/common.json List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu devel , Eric Blake , Markus Armbruster , Alberto Garcia , Stefan Hajnoczi Cc: Kevin Wolf , qemu block , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , Gonglei , Yang Hongyang , zhanghailiang It will be used by BlockdevOptionsNBD. Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Reviewed-by: Alberto Garcia --- qapi-schema.json | 27 --------------------------- qapi/common.json | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 4342a08..0ccb002 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2537,33 +2537,6 @@ 'opts': 'NetClientOptions' } } ## -# @InetSocketAddress -# -# Captures a socket address or address range in the Internet namespace. -# -# @host: host part of the address -# -# @port: port part of the address, or lowest port if @to is present -# -# @to: highest port to try -# -# @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6 -# #optional -# -# @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6 -# #optional -# -# Since 1.3 -## -{ 'struct': 'InetSocketAddress', - 'data': { - 'host': 'str', - 'port': 'str', - '*to': 'uint16', - '*ipv4': 'bool', - '*ipv6': 'bool' } } - -## # @UnixSocketAddress # # Captures a socket address in the local ("Unix socket") namespace. diff --git a/qapi/common.json b/qapi/common.json index bad56bf..11d039a 100644 --- a/qapi/common.json +++ b/qapi/common.json @@ -114,3 +114,30 @@ ## { 'enum': 'OnOffAuto', 'data': [ 'auto', 'on', 'off' ] } + +## +# @InetSocketAddress +# +# Captures a socket address or address range in the Internet namespace. +# +# @host: host part of the address +# +# @port: port part of the address, or lowest port if @to is present +# +# @to: highest port to try +# +# @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6 +# #optional +# +# @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6 +# #optional +# +# Since 1.3 +## +{ 'struct': 'InetSocketAddress', + 'data': { + 'host': 'str', + 'port': 'str', + '*to': 'uint16', + '*ipv4': 'bool', + '*ipv6': 'bool' } } -- 2.4.3