wl_display_connect (3) - Linux Manuals
wl_display_connect: Connect to a Wayland socket
NAME
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); - struct wl_display *wl_display_connect_to_fd(int
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.