diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-24 10:13:23 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-03 05:46:47 +0100 |
commit | 12ca641ff5f901f72cd44bee5f9075b675fbc3e1 (patch) | |
tree | aa46c999da8437bb9ec1b1e016f0338a5472a0bc /gdk/gdkclipboardprivate.h | |
parent | 888e5257e074c33f316d83213b57f2f2a77d6150 (diff) | |
download | gtk+-12ca641ff5f901f72cd44bee5f9075b675fbc3e1.tar.gz |
clipboard: Implement local fallback clipboard transfers
This requires implementing a "pipe" so we can have 2 streams running:
contentprovider => serializer => outputstream
inputstream => deserializer => reader
And the pipe shoves the data from the outputstream into the inputstream.
Diffstat (limited to 'gdk/gdkclipboardprivate.h')
-rw-r--r-- | gdk/gdkclipboardprivate.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdk/gdkclipboardprivate.h b/gdk/gdkclipboardprivate.h index b171068a5f..73b198eacf 100644 --- a/gdk/gdkclipboardprivate.h +++ b/gdk/gdkclipboardprivate.h @@ -57,6 +57,16 @@ GdkClipboard * gdk_clipboard_new (GdkDisplay void gdk_clipboard_claim_remote (GdkClipboard *clipboard, GdkContentFormats *formats); +void gdk_clipboard_write_async (GdkClipboard *clipboard, + const char *mime_type, + GOutputStream *stream, + int io_priority, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean gdk_clipboard_write_finish (GdkClipboard *clipboard, + GAsyncResult *result, + GError **error); G_END_DECLS |