wl_display_connect (3) - Linux Manuals
wl_display_connect: Connect to a Wayland socket
wl_display_connect, wl_display_connect_to_fd - Connect to a Wayland socket
struct wl_display *wl_display_connect(const char *name);
struct wl_display *wl_display_connect_to_fd(int fd);
connects to a Wayland socket that was previously opened by a Wayland server. The server socket must be placed in
for this function to find it. The
argument specifies the name of the socket or
to use the default (which is
"wayland-0"). The environment variable
replaces the default value. If
is set, this function behaves like
with the file-descriptor number taken from the environment variable.
connects to a Wayland socket with an explicit file-descriptor. The file-descriptor is passed as argument
return a new display context object or NULL on failure.
is set correspondingly.