summaryrefslogtreecommitdiff
path: root/gdk/gdkclipboard.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-22 10:44:30 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-03 05:46:27 +0100
commit91910ba01319447243784a85fefad0fa17c19db7 (patch)
treecf9410387bc20b6f01457f7c421041ccdb1e43bf /gdk/gdkclipboard.h
parent970cb100aff72679b15c3c8b27b168335d0e5a50 (diff)
downloadgtk+-91910ba01319447243784a85fefad0fa17c19db7.tar.gz
gdk: Im[plement content deserializing
Add infrastructure to do GInputStream => GType conversions. Use that to implement gdk_clipboard_read_value() which reads into GValues.
Diffstat (limited to 'gdk/gdkclipboard.h')
-rw-r--r--gdk/gdkclipboard.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdk/gdkclipboard.h b/gdk/gdkclipboard.h
index 5721fd10ff..2a357602ab 100644
--- a/gdk/gdkclipboard.h
+++ b/gdk/gdkclipboard.h
@@ -54,6 +54,17 @@ GInputStream * gdk_clipboard_read_finish (GdkClipboard *
const char **out_mime_type,
GAsyncResult *result,
GError **error);
+GDK_AVAILABLE_IN_3_94
+void gdk_clipboard_read_value_async (GdkClipboard *clipboard,
+ GType type,
+ int io_priority,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GDK_AVAILABLE_IN_3_94
+const GValue * gdk_clipboard_read_value_finish (GdkClipboard *clipboard,
+ GAsyncResult *res,
+ GError **error);
G_END_DECLS