mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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:
parent
17965d99e8
commit
4bade62938
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue