mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
client: Add wl_display_disconnect() so mesa master can link against 0.85
This commit is contained in:
parent
80cf9cb44d
commit
fdbbc38a6d
1 changed files with 14 additions and 2 deletions
|
|
@ -396,8 +396,8 @@ wl_display_connect(const char *name)
|
|||
return display;
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_display_destroy(struct wl_display *display)
|
||||
static void
|
||||
display_disconnect(struct wl_display *display)
|
||||
{
|
||||
struct wl_global *global, *gnext;
|
||||
struct wl_global_listener *listener, *lnext;
|
||||
|
|
@ -415,6 +415,18 @@ wl_display_destroy(struct wl_display *display)
|
|||
free(display);
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_display_destroy(struct wl_display *display)
|
||||
{
|
||||
display_disconnect(display);
|
||||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_display_disconnect(struct wl_display *display)
|
||||
{
|
||||
display_disconnect(display);
|
||||
}
|
||||
|
||||
WL_EXPORT 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