1
0
Fork 0

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:
Jonas Ådahl 2024-04-04 15:16:13 +02:00 committed by Marge Bot
parent c41a8d539f
commit 8caa2db139
2 changed files with 4 additions and 0 deletions

View file

@ -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);

View file

@ -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 ())