server: add wl_display_remove_socket_fd()

Undoes wl_display_add_socket_fd(). Useful for protocols such as:
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/68

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-06-05 12:04:39 +02:00
parent 56dfdb7614
commit 6c258a7ae5
2 changed files with 34 additions and 0 deletions

View file

@ -205,6 +205,9 @@ wl_display_add_socket_auto(struct wl_display *display);
int
wl_display_add_socket_fd(struct wl_display *display, int sock_fd);
int
wl_display_remove_socket_fd(struct wl_display *display, int sock_fd);
void
wl_display_terminate(struct wl_display *display);