1/* GIO - GLib Output, 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_OUTPUT_STREAM_H__
23#define __GDK_X11_SELECTION_OUTPUT_STREAM_H__
24
25#include <gio/gio.h>
26#include "gdktypes.h"
27
28#include <X11/Xlib.h>
29
30G_BEGIN_DECLS
31
32#define GDK_TYPE_X11_SELECTION_OUTPUT_STREAM (gdk_x11_selection_output_stream_get_type ())
33#define GDK_X11_SELECTION_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_X11_SELECTION_OUTPUT_STREAM, GdkX11SelectionOutputStream))
34#define GDK_X11_SELECTION_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDK_TYPE_X11_SELECTION_OUTPUT_STREAM, GdkX11SelectionOutputStreamClass))
35#define GDK_IS_X11_SELECTION_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_X11_SELECTION_OUTPUT_STREAM))
36#define GDK_IS_X11_SELECTION_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDK_TYPE_X11_SELECTION_OUTPUT_STREAM))
37#define GDK_X11_SELECTION_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_X11_SELECTION_OUTPUT_STREAM, GdkX11SelectionOutputStreamClass))
38
39typedef struct GdkX11SelectionOutputStream GdkX11SelectionOutputStream;
40typedef struct GdkX11SelectionOutputStreamClass GdkX11SelectionOutputStreamClass;
41
42typedef void (* GdkX11SelectionOutputHandler) (GOutputStream *stream, const char *mime_type, gpointer user_data);
43
44struct GdkX11SelectionOutputStream
45{
46 GOutputStream parent_instance;
47};
48
49struct GdkX11SelectionOutputStreamClass
50{
51 GOutputStreamClass parent_class;
52};
53
54
55GType gdk_x11_selection_output_stream_get_type (void) G_GNUC_CONST;
56
57void gdk_x11_selection_output_streams_create (GdkDisplay *display,
58 GdkContentFormats *formats,
59 Window requestor,
60 Atom selection,
61 Atom target,
62 Atom property,
63 gulong timestamp,
64 GdkX11SelectionOutputHandler handler,
65 gpointer user_data);
66
67G_END_DECLS
68
69#endif /* __GDK_X11_SELECTION_OUTPUT_STREAM_H__ */
70

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