summaryrefslogtreecommitdiff
path: root/gdk/gdkcontentformats.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-20 02:47:45 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-20 23:12:48 +0100
commit1a482ad2760b2f078605f807a13aed2877e95ef0 (patch)
tree5a355ed42e7c59d1eea93a3673c436f983d96095 /gdk/gdkcontentformats.h
parentd6a209816bacff89e361a580b24e847dca0bdef5 (diff)
downloadgtk+-1a482ad2760b2f078605f807a13aed2877e95ef0.tar.gz
gdk: Add GdkContentFormatsBuilder
Yes, the name is too long. No, I couldn't think of a shorter one.
Diffstat (limited to 'gdk/gdkcontentformats.h')
-rw-r--r--gdk/gdkcontentformats.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdk/gdkcontentformats.h b/gdk/gdkcontentformats.h
index f73c5b4688..5b27a47654 100644
--- a/gdk/gdkcontentformats.h
+++ b/gdk/gdkcontentformats.h
@@ -59,6 +59,19 @@ GDK_AVAILABLE_IN_3_94
gboolean gdk_content_formats_contains (const GdkContentFormats *formats,
const char *mime_type);
+typedef struct _GdkContentFormatsBuilder GdkContentFormatsBuilder;
+
+GDK_AVAILABLE_IN_3_94
+GdkContentFormatsBuilder*gdk_content_formats_builder_new (void);
+GDK_AVAILABLE_IN_3_94
+GdkContentFormats * gdk_content_formats_builder_free (GdkContentFormatsBuilder *builder) G_GNUC_WARN_UNUSED_RESULT;
+GDK_AVAILABLE_IN_3_94
+void gdk_content_formats_builder_add_formats (GdkContentFormatsBuilder *builder,
+ GdkContentFormats *formats);
+GDK_AVAILABLE_IN_3_94
+void gdk_content_formats_builder_add_mime_type(GdkContentFormatsBuilder *builder,
+ const char *mime_type);
+
G_END_DECLS
#endif /* __GTK_CONTENT_FORMATS_H__ */