qemu-sockets: move and rename SocketAddress_to_str()
commit18bf1c94565b1b594873aaea9dfd47c83abd8543
authorLaurent Vivier <lvivier@redhat.com>
Fri, 21 Oct 2022 09:09:18 +0000 (21 11:09 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 28 Oct 2022 05:28:52 +0000 (28 13:28 +0800)
tree0e463462e1107c445897ef80cc118ba09e9399b9
parent784e7a2531040824f88f33494be256a9e331e219
qemu-sockets: move and rename SocketAddress_to_str()

Rename SocketAddress_to_str() to socket_uri() and move it to
util/qemu-sockets.c close to socket_parse().

socket_uri() generates a string from a SocketAddress while
socket_parse() generates a SocketAddress from a string.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/qemu/sockets.h
monitor/hmp-cmds.c
util/qemu-sockets.c