wl_display_connect (3) Linux Manual Page
wl_display_connect, wl_display_connect_to_fd – Connect to a Wayland socket
Synopsis
#include <wayland-client.h>
struct wl_display *wl_display_connect(const char *name);
struct wl_display *wl_display_connect_to_fd(int fd);
Description
wl_display_connect
wl_display_connect_to_fd connects to a Wayland socket with an explicit file-descriptor. The file-descriptor is passed as argument fd.
Return Value
wl_display_connect and wl_display_connect_to_fd return a new display context object or NULL on failure. errno is set correspondingly.
See Also
wayland-client(7), wl_display_disconnect(3), wl_display_iterate(3)
