diff options
author | Laurent Vivier <lvivier@redhat.com> | 2022-10-21 11:09:18 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2022-10-28 13:28:52 +0800 |
commit | 18bf1c94565b1b594873aaea9dfd47c83abd8543 (patch) | |
tree | 0e463462e1107c445897ef80cc118ba09e9399b9 /include | |
parent | 784e7a2531040824f88f33494be256a9e331e219 (diff) | |
download | qemu-18bf1c94565b1b594873aaea9dfd47c83abd8543.zip qemu-18bf1c94565b1b594873aaea9dfd47c83abd8543.tar.gz qemu-18bf1c94565b1b594873aaea9dfd47c83abd8543.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/sockets.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index db4bedb..214058d 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -58,6 +58,7 @@ NetworkAddressFamily inet_netfamily(int family); int unix_listen(const char *path, Error **errp); int unix_connect(const char *path, Error **errp); +char *socket_uri(SocketAddress *addr); SocketAddress *socket_parse(const char *str, Error **errp); int socket_connect(SocketAddress *addr, Error **errp); int socket_listen(SocketAddress *addr, int num, Error **errp); @@ -141,5 +142,4 @@ SocketAddress *socket_address_flatten(SocketAddressLegacy *addr); * Return 0 on success. */ int socket_address_parse_named_fd(SocketAddress *addr, Error **errp); - #endif /* QEMU_SOCKETS_H */ |