mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-11 05:34:41 -04:00
client: Add wl_display_connect_to_fd() function
This lets us connect a display to an already existing socket fd.
This commit is contained in:
parent
599a455fb4
commit
c855d6eec4
2 changed files with 45 additions and 27 deletions
|
|
@ -73,6 +73,7 @@ typedef int (*wl_display_update_func_t)(uint32_t mask, void *data);
|
|||
typedef void (*wl_callback_func_t)(void *data, uint32_t time);
|
||||
|
||||
struct wl_display *wl_display_connect(const char *name);
|
||||
struct wl_display *wl_display_connect_to_fd(int fd);
|
||||
void wl_display_disconnect(struct wl_display *display);
|
||||
int wl_display_get_fd(struct wl_display *display,
|
||||
wl_display_update_func_t update, void *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue