summaryrefslogtreecommitdiff
path: root/gdk/gdkcontentformats.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-20 04:42:43 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-20 23:15:11 +0100
commit1a70ca75e8128cfa4c1a9225301b42b50bdc17bc (patch)
tree2022982aeb22f1384199d7c90cea2613d80e8671 /gdk/gdkcontentformats.h
parentfc2ce5a9254c7678eaadde35297b8fd90c869bd4 (diff)
downloadgtk+-1a70ca75e8128cfa4c1a9225301b42b50bdc17bc.tar.gz
gdk: Sanitize GdkContentFormats API
Make sure the API reflects the idea that GdkContentFormats is a set containing mime types. In particular, treat the object itself as a plural - it's named content format`S' after all - and therefor use the correct verb form. Also make GdkContentFormats keep an array instead of a list, now that it's immutable.
Diffstat (limited to 'gdk/gdkcontentformats.h')
-rw-r--r--gdk/gdkcontentformats.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdk/gdkcontentformats.h b/gdk/gdkcontentformats.h
index 1172bdca06..2bb1e1766f 100644
--- a/gdk/gdkcontentformats.h
+++ b/gdk/gdkcontentformats.h
@@ -47,13 +47,17 @@ GDK_AVAILABLE_IN_3_94
char * gdk_content_formats_to_string (GdkContentFormats *formats);
GDK_AVAILABLE_IN_3_94
+const char * const * gdk_content_formats_get_mime_types (GdkContentFormats *formats,
+ gsize *n_mime_types);
+
+GDK_AVAILABLE_IN_3_94
GdkContentFormats * gdk_content_formats_union (GdkContentFormats *first,
const GdkContentFormats *second) G_GNUC_WARN_UNUSED_RESULT;
GDK_AVAILABLE_IN_3_94
-GdkAtom gdk_content_formats_intersects (const GdkContentFormats *first,
+const char * gdk_content_formats_match (const GdkContentFormats *first,
const GdkContentFormats *second);
GDK_AVAILABLE_IN_3_94
-gboolean gdk_content_formats_contains (const GdkContentFormats *formats,
+gboolean gdk_content_formats_contain_mime_type (const GdkContentFormats *formats,
const char *mime_type);
typedef struct _GdkContentFormatsBuilder GdkContentFormatsBuilder;