summaryrefslogtreecommitdiff
path: root/gdk/gdkpipeiostreamprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-24 10:13:23 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-03 05:46:47 +0100
commit12ca641ff5f901f72cd44bee5f9075b675fbc3e1 (patch)
treeaa46c999da8437bb9ec1b1e016f0338a5472a0bc /gdk/gdkpipeiostreamprivate.h
parent888e5257e074c33f316d83213b57f2f2a77d6150 (diff)
downloadgtk+-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/gdkpipeiostreamprivate.h')
-rw-r--r--gdk/gdkpipeiostreamprivate.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/gdk/gdkpipeiostreamprivate.h b/gdk/gdkpipeiostreamprivate.h
new file mode 100644
index 0000000000..50af59defe
--- /dev/null
+++ b/gdk/gdkpipeiostreamprivate.h
@@ -0,0 +1,33 @@
+/* GDK - The GIMP Drawing Kit
+ *
+ * Copyright (C) 2017 Benjamin Otte <otte@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GDK_PIPE_IO_STREAM_H__
+#define __GDK_PIPE_IO_STREAM_H__
+
+#include <gdk/gdkversionmacros.h>
+#include <gio/gio.h>
+
+G_BEGIN_DECLS
+
+
+GIOStream * gdk_pipe_io_stream_new (void);
+
+
+G_END_DECLS
+
+#endif /* __GDK_PIPE_IO_STREAM_H__ */