sockets: Rename SocketAddress to SocketAddressLegacy
The next commit will rename SocketAddressFlat to SocketAddress, and the commit after that will replace most uses of SocketAddressLegacy by SocketAddress, replacing most of this commit's renames right back. Note that checkpatch emits a few "line over 80 characters" warnings. The long lines are all temporary; the SocketAddressLegacy replacement will shorten them again. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1493192202-3184-5-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
4626a19c86
commit
dfd100f242
23 changed files with 314 additions and 312 deletions
|
|
@ -4122,13 +4122,15 @@
|
|||
'port': 'str' } }
|
||||
|
||||
##
|
||||
# @SocketAddress:
|
||||
# @SocketAddressLegacy:
|
||||
#
|
||||
# Captures the address of a socket, which could also be a named file descriptor
|
||||
#
|
||||
# Note: This type is deprecated in favor of SocketAddressFlat.
|
||||
#
|
||||
# Since: 1.3
|
||||
##
|
||||
{ 'union': 'SocketAddress',
|
||||
{ 'union': 'SocketAddressLegacy',
|
||||
'data': {
|
||||
'inet': 'InetSocketAddress',
|
||||
'unix': 'UnixSocketAddress',
|
||||
|
|
@ -4156,7 +4158,7 @@
|
|||
#
|
||||
# @type: Transport type
|
||||
#
|
||||
# This is just like SocketAddress, except it's a flat union rather
|
||||
# This is just like SocketAddressLegacy, except it's a flat union rather
|
||||
# than a simple union. Nicer because it avoids nesting on the wire,
|
||||
# i.e. this form has fewer {}.
|
||||
#
|
||||
|
|
@ -4886,7 +4888,7 @@
|
|||
#
|
||||
# Since: 1.4
|
||||
##
|
||||
{ 'struct': 'ChardevSocket', 'data': { 'addr' : 'SocketAddress',
|
||||
{ 'struct': 'ChardevSocket', 'data': { 'addr' : 'SocketAddressLegacy',
|
||||
'*tls-creds' : 'str',
|
||||
'*server' : 'bool',
|
||||
'*wait' : 'bool',
|
||||
|
|
@ -4906,8 +4908,8 @@
|
|||
#
|
||||
# Since: 1.5
|
||||
##
|
||||
{ 'struct': 'ChardevUdp', 'data': { 'remote' : 'SocketAddress',
|
||||
'*local' : 'SocketAddress' },
|
||||
{ 'struct': 'ChardevUdp', 'data': { 'remote' : 'SocketAddressLegacy',
|
||||
'*local' : 'SocketAddressLegacy' },
|
||||
'base': 'ChardevCommon' }
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue