mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
qapi: Improve documentation of file descriptor socket addresses
SocketAddress branch @fd is documented in enum SocketAddressType, unlike the other branches. That's because the branch's type is String from common.json. Use a local copy of String, so we can put the documentation in the usual place. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240205074709.3613229-14-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@ -1464,7 +1464,8 @@ SocketAddress *socket_address_flatten(SocketAddressLegacy *addr_legacy)
|
||||
break;
|
||||
case SOCKET_ADDRESS_TYPE_FD:
|
||||
addr->type = SOCKET_ADDRESS_TYPE_FD;
|
||||
QAPI_CLONE_MEMBERS(String, &addr->u.fd, addr_legacy->u.fd.data);
|
||||
QAPI_CLONE_MEMBERS(FdSocketAddress, &addr->u.fd,
|
||||
addr_legacy->u.fd.data);
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
|
Reference in New Issue
Block a user