1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright (C) 2017 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 *
18 * Author: Benjamin Otte <otte@gnome.org>
19 * Christian Kellner <gicmo@gnome.org>
20 */
21
22#ifndef __GDK_X11_SELECTION_INPUT_STREAM_H__
23#define __GDK_X11_SELECTION_INPUT_STREAM_H__
24
25#include <gio/gio.h>
26#include "gdktypes.h"
27
28G_BEGIN_DECLS
29
30#define GDK_TYPE_X11_SELECTION_INPUT_STREAM (gdk_x11_selection_input_stream_get_type ())
31#define GDK_X11_SELECTION_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_X11_SELECTION_INPUT_STREAM, GdkX11SelectionInputStream))
32#define GDK_X11_SELECTION_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDK_TYPE_X11_SELECTION_INPUT_STREAM, GdkX11SelectionInputStreamClass))
33#define GDK_IS_X11_SELECTION_INPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_X11_SELECTION_INPUT_STREAM))
34#define GDK_IS_X11_SELECTION_INPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDK_TYPE_X11_SELECTION_INPUT_STREAM))
35#define GDK_X11_SELECTION_INPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_X11_SELECTION_INPUT_STREAM, GdkX11SelectionInputStreamClass))
36
37typedef struct GdkX11SelectionInputStream GdkX11SelectionInputStream;
38typedef struct GdkX11SelectionInputStreamClass GdkX11SelectionInputStreamClass;
39
40struct GdkX11SelectionInputStream
41{
42 GInputStream parent_instance;
43};
44
45struct GdkX11SelectionInputStreamClass
46{
47 GInputStreamClass parent_class;
48};
49
50
51GType gdk_x11_selection_input_stream_get_type (void) G_GNUC_CONST;
52
53void gdk_x11_selection_input_stream_new_async (GdkDisplay *display,
54 const char *selection,
55 const char *target,
56 guint32 timestamp,
57 int io_priority,
58 GCancellable *cancellable,
59 GAsyncReadyCallback callback,
60 gpointer user_data);
61GInputStream * gdk_x11_selection_input_stream_new_finish (GAsyncResult *result,
62 const char **type,
63 int *format,
64 GError **error);
65
66
67G_END_DECLS
68
69#endif /* __GDK_X11_SELECTION_INPUT_STREAM_H__ */
70

source code of gtk/gdk/x11/gdkselectioninputstream-x11.h