window: add display_destroy()
Add a function to destroy the 'struct display', supposedly with all
contained resources, that are not explicitly created by the application.
The implementation at this time is incomplete. It does clean up the
following:
- xkb structure is freed (needs new libxkbcommon from git)
- EGL resources are freed
- wl_display is flushed and destroyed
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
diff --git a/clients/window.h b/clients/window.h
index 20bf4e2..91f3af1 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -50,6 +50,9 @@
display_create(int *argc, char **argv[], const GOptionEntry *option_entries);
void
+display_destroy(struct display *display);
+
+void
display_set_user_data(struct display *display, void *data);
void *