dmabuf: Move a declaration

We will need to access this struct from the Wayland backend.
This commit is contained in:
Matthias Clasen
2024-01-06 21:37:46 -05:00
parent 933ce71ec6
commit d9c3f35c3b
2 changed files with 8 additions and 8 deletions

View File

@@ -49,14 +49,6 @@
* Since: 4.14
*/
struct _GdkDmabufFormats
{
int ref_count;
gsize n_formats;
GdkDmabufFormat *formats;
};
G_DEFINE_BOXED_TYPE (GdkDmabufFormats, gdk_dmabuf_formats, gdk_dmabuf_formats_ref, gdk_dmabuf_formats_unref)
/**

View File

@@ -9,6 +9,14 @@ struct _GdkDmabufFormat
guint64 modifier;
};
struct _GdkDmabufFormats
{
int ref_count;
gsize n_formats;
GdkDmabufFormat *formats;
};
GdkDmabufFormats * gdk_dmabuf_formats_new (GdkDmabufFormat *formats,
gsize n_formats);