]> git.proxmox.com Git - mirror_qemu.git/commit - util/qemu-sockets.c
sockets: remove use of QemuOpts from socket_dgram
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 11 Jan 2016 13:17:04 +0000 (13:17 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jan 2016 14:41:01 +0000 (15:41 +0100)
commit8b39910e631ff055b90ed50c98f5a5948b0550ed
tree641dbbfc27970131ed78b2ca23dfd3516aa60db5
parent2942e420e06bd6370756ef0f4722dcf8f4c74659
sockets: remove use of QemuOpts from socket_dgram

The socket_dgram method accepts a QAPI SocketAddress object
which it then turns into QemuOpts before calling the
inet_dgram_opts helper method. By converting the latter to
use QAPI SocketAddress directly, the QemuOpts conversion
step can be eliminated.

This removes the very last use of QemuOpts from the
sockets code, so the socket_optslist[] array is also
removed.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1452518225-11751-5-git-send-email-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/qemu/sockets.h
util/qemu-sockets.c