summaryrefslogtreecommitdiff
path: root/gdk/gdkcontentproviderimpl.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-11 06:09:58 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-01-11 06:09:58 +0000
commitf5daecf353714d2d7d1dd202a476922d22c895e7 (patch)
tree55c458c40e95d7981cd8cad5941f705efbf10bf4 /gdk/gdkcontentproviderimpl.h
parent186b783f9d3d39b37f61defcf2be4b020e90e6f8 (diff)
parentb76940bab5b82914617424a1063c6942e4ad143d (diff)
downloadgtk+-f5daecf353714d2d7d1dd202a476922d22c895e7.tar.gz
Merge branch 'dnd-gestures-2' into 'master'
Add new dnd api See merge request GNOME/gtk!1278
Diffstat (limited to 'gdk/gdkcontentproviderimpl.h')
-rw-r--r--gdk/gdkcontentproviderimpl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdk/gdkcontentproviderimpl.h b/gdk/gdkcontentproviderimpl.h
index 1c41360243..19ac6969e1 100644
--- a/gdk/gdkcontentproviderimpl.h
+++ b/gdk/gdkcontentproviderimpl.h
@@ -35,6 +35,21 @@ GDK_AVAILABLE_IN_ALL
GdkContentProvider * gdk_content_provider_new_for_bytes (const char *mime_type,
GBytes *bytes);
+typedef void (*GdkContentProviderGetValueFunc) (GValue *value,
+ gpointer data);
+
+GDK_AVAILABLE_IN_ALL
+GdkContentProvider * gdk_content_provider_new_with_callback (GType type,
+ GdkContentProviderGetValueFunc func,
+ gpointer data);
+
+typedef GBytes * (*GdkContentProviderGetBytesFunc) (const char *mime_type,
+ gpointer data);
+
+GDK_AVAILABLE_IN_ALL
+GdkContentProvider * gdk_content_provider_new_with_formats (GdkContentFormats *formats,
+ GdkContentProviderGetBytesFunc func,
+ gpointer data);
G_END_DECLS