diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2015-08-14 18:18:41 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2015-10-20 14:15:48 +0100 |
commit | 2a8e21c7c8dcb7d235cfd256be36b7e8f9f3fcb3 (patch) | |
tree | 0d79b4d9d102238afc754ea766da58100e6afc99 /include | |
parent | 17c55decec2a516cf7f290ec8a5f4f207531e8b4 (diff) |
sockets: move qapi_copy_SocketAddress into qemu-sockets.c
The qapi_copy_SocketAddress method is going to be useful
in more places than just qemu-char.c, so move it into
the qemu-sockets.c file to allow its reuse.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/sockets.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index 3ea7cc9f03..5a183c570d 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -118,4 +118,8 @@ SocketAddress *socket_local_address(int fd, Error **errp); */ SocketAddress *socket_remote_address(int fd, Error **errp); + +void qapi_copy_SocketAddress(SocketAddress **p_dest, + SocketAddress *src); + #endif /* QEMU_SOCKET_H */ |