This will be used to influence the sorting of formats, so we can prefer 'native' formats over those that we can't import. Test included.
17 lines
1.0 KiB
C
17 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include "gdkdmabufformats.h"
|
|
|
|
typedef struct GdkDmabufFormatsBuilder GdkDmabufFormatsBuilder;
|
|
|
|
GdkDmabufFormatsBuilder * gdk_dmabuf_formats_builder_new (void);
|
|
GdkDmabufFormats * gdk_dmabuf_formats_builder_free_to_formats (GdkDmabufFormatsBuilder *self);
|
|
|
|
void gdk_dmabuf_formats_builder_add_format (GdkDmabufFormatsBuilder *self,
|
|
guint32 fourcc,
|
|
guint64 modifier);
|
|
|
|
void gdk_dmabuf_formats_builder_next_priority (GdkDmabufFormatsBuilder *self);
|
|
void gdk_dmabuf_formats_builder_add_formats (GdkDmabufFormatsBuilder *self,
|
|
GdkDmabufFormats *formats);
|