server: document wl_display_add_socket_fd() ownership

wl_socket_destroy() will close the socket.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-06-05 11:59:31 +02:00
parent 17965d99e8
commit 4bade62938

View file

@ -1811,6 +1811,9 @@ wl_display_add_socket_auto(struct wl_display *display)
* The fd must be properly set to CLOEXEC and bound to a socket file
* with both bind() and listen() already called.
*
* On success, the socket fd ownership is transferred to libwayland:
* libwayland will close the socket when the display is destroyed.
*
* \memberof wl_display
*/
WL_EXPORT int