]> Git Repo - qemu.git/blobdiff - include/qemu/sockets.h
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
[qemu.git] / include / qemu / sockets.h
index 5dd264816949d898521d3e2d3e6037c77baf04cc..462033a4def2d6359ba3b1b0056a40b5b739a7b0 100644 (file)
@@ -111,4 +111,18 @@ SocketAddress *socket_remote_address(int fd, Error **errp);
 void qapi_copy_SocketAddress(SocketAddress **p_dest,
                              SocketAddress *src);
 
+/**
+ * socket_address_to_string:
+ * @addr: the socket address struct
+ * @errp: pointer to uninitialized error object
+ *
+ * Get the string representation of the socket
+ * address. A pointer to the char array containing
+ * string format will be returned, the caller is
+ * required to release the returned value when no
+ * longer required with g_free.
+ *
+ * Returns: the socket address in string format, or NULL on error
+ */
+char *socket_address_to_string(struct SocketAddress *addr, Error **errp);
 #endif /* QEMU_SOCKET_H */
This page took 0.02182 seconds and 4 git commands to generate.