]> Git Repo - qemu.git/commit
sockets: New helper socket_address_crumple()
authorMarkus Armbruster <[email protected]>
Thu, 30 Mar 2017 17:43:15 +0000 (19:43 +0200)
committerMax Reitz <[email protected]>
Mon, 3 Apr 2017 15:11:39 +0000 (17:11 +0200)
commit216411b83967ae19e3c9c520e13ceb8bb383890c
tree6b6a983a5e3aeadcf39ed6180287607ff3478d3b
parent8bc0673f6dc2485b46da6de8204aaca2a711acea
sockets: New helper socket_address_crumple()

SocketAddress is a simple union, and simple unions are awkward: they
have their variant members wrapped in a "data" object on the wire, and
require additional indirections in C.  I intend to limit its use to
existing external interfaces.  New ones should use SocketAddressFlat.
I further intend to convert all internal interfaces to
SocketAddressFlat.  This helper should go away then.

Signed-off-by: Markus Armbruster <[email protected]>
Message-id: 1490895797[email protected]
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Max Reitz <[email protected]>
include/qemu/sockets.h
util/qemu-sockets.c
This page took 0.026218 seconds and 4 git commands to generate.