tests/wayland-test-client-utils: Add custom test state field to display
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3825>
This commit is contained in:
parent
c41a8d539f
commit
8caa2db139
2 changed files with 4 additions and 0 deletions
|
@ -450,6 +450,7 @@ wayland_display_finalize (GObject *object)
|
|||
{
|
||||
WaylandDisplay *display = WAYLAND_DISPLAY (object);
|
||||
|
||||
g_clear_pointer (&display->test_state, display->destroy_test_state);
|
||||
wl_display_disconnect (display->display);
|
||||
g_clear_pointer (&display->properties, g_hash_table_unref);
|
||||
g_clear_pointer (&display->formats, g_hash_table_unref);
|
||||
|
|
|
@ -54,6 +54,9 @@ typedef struct _WaylandDisplay
|
|||
|
||||
/* format to DmaBufFormat mapping */
|
||||
GHashTable *formats;
|
||||
|
||||
gpointer test_state;
|
||||
GDestroyNotify destroy_test_state;
|
||||
} WaylandDisplay;
|
||||
|
||||
#define WAYLAND_TYPE_DISPLAY (wayland_display_get_type ())
|
||||
|
|
Loading…
Reference in a new issue