summaryrefslogtreecommitdiff
path: root/gdk/gdkcontentformats.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-24 11:34:19 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-03 05:46:47 +0100
commit7426f1a16b7cbc14cbc453852f883a20d2575000 (patch)
tree5a9d044da04bb42753158c0071b86dcfcb94fd46 /gdk/gdkcontentformats.h
parent25c389583632f4b0ea408457fb777475819989bd (diff)
downloadgtk+-7426f1a16b7cbc14cbc453852f883a20d2575000.tar.gz
gdkcontentformats: Change the matching API
Instead of having just one function that has the gtype and mime type as out arguments, have 3 functions: 1 that finds any match, 1 that finds a GType match and one for a mime type match. This makes the API way more convenient to use.
Diffstat (limited to 'gdk/gdkcontentformats.h')
-rw-r--r--gdk/gdkcontentformats.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdk/gdkcontentformats.h b/gdk/gdkcontentformats.h
index 7ba1496316..1c67d005f3 100644
--- a/gdk/gdkcontentformats.h
+++ b/gdk/gdkcontentformats.h
@@ -58,9 +58,13 @@ GdkContentFormats * gdk_content_formats_union (GdkContentForma
const GdkContentFormats *second) G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_3_94
gboolean gdk_content_formats_match (const GdkContentFormats *first,
- const GdkContentFormats *second,
- GType *out_gtype,
- const char **out_mime_type);
+ const GdkContentFormats *second);
+GDK_AVAILABLE_IN_3_94
+GType gdk_content_formats_match_gtype (const GdkContentFormats *first,
+ const GdkContentFormats *second);
+GDK_AVAILABLE_IN_3_94
+const char * gdk_content_formats_match_mime_type (const GdkContentFormats *first,
+ const GdkContentFormats *second);
GDK_AVAILABLE_IN_3_94
gboolean gdk_content_formats_contain_gtype (const GdkContentFormats *formats,
GType type);