Debian Codegraph @

gdk/x11/gdkselectioninputstream-x11.c

raw symbols SCIP
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 <[email protected]>
19 * Christian Kellner <[email protected]>
20 */
21
22 #include "config.h"cxx . . $ `<file>/build/config.h`/
23
24 #include "gdkselectioninputstream-x11.h"cxx . . $ `<file>/gdk/x11/gdkselectioninputstream-x11.h`/
25
26 #include "gdkdisplay-x11.h"cxx . . $ `<file>/gdk/x11/gdkdisplay-x11.h`/
27 #include <glib/gi18n-lib.h>
28 #include "gdkx11display.h"cxx . . $ `<file>/gdk/x11/gdkx11display.h`/
29 #include "gdkx11property.h"cxx . . $ `<file>/gdk/x11/gdkx11property.h`/
30 #include "gdkx11surface.h"cxx . . $ `<file>/gdk/x11/gdkx11surface.h`/
31
32 G_GNUC_BEGIN_IGNORE_DEPRECATIONScxx . . $ `<external>/12741050725406041920/gmacros.h:771:9`!
33
34 typedef struct GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate#;
35
36 struct GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# {
37 GdkDisplaycxx . . $ GdkDisplay# *displaycxx . . $ GdkX11SelectionInputStreamPrivate#display.;
38 GAsyncQueuecxx . . $ GAsyncQueue# *chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks.;
39 char *selectioncxx . . $ GdkX11SelectionInputStreamPrivate#selection.;
40 Atomcxx . . $ Atom# xselectioncxx . . $ GdkX11SelectionInputStreamPrivate#xselection.;
41 char *targetcxx . . $ GdkX11SelectionInputStreamPrivate#target.;
42 Atomcxx . . $ Atom# xtargetcxx . . $ GdkX11SelectionInputStreamPrivate#xtarget.;
43 char *propertycxx . . $ GdkX11SelectionInputStreamPrivate#property.;
44 Atomcxx . . $ Atom# xpropertycxx . . $ GdkX11SelectionInputStreamPrivate#xproperty.;
45 const char *typecxx . . $ GdkX11SelectionInputStreamPrivate#type.;
46 Atomcxx . . $ Atom# xtypecxx . . $ GdkX11SelectionInputStreamPrivate#xtype.;
47 int formatcxx . . $ GdkX11SelectionInputStreamPrivate#format.;
48
49 GTaskcxx . . $ GTask# *pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task.;
50 gucharcxx . . $ guchar# *pending_datacxx . . $ GdkX11SelectionInputStreamPrivate#pending_data.;
51 gsizecxx . . $ gsize# pending_sizecxx . . $ GdkX11SelectionInputStreamPrivate#pending_size.;
52
53 guintcxx . . $ guint# completecxx . . $ GdkX11SelectionInputStreamPrivate#complete. : 1;
54 guintcxx . . $ guint# incrcxx . . $ GdkX11SelectionInputStreamPrivate#incr. : 1;
55 };
56
57 G_DEFINE_TYPE_WITH_PRIVATEcxx . . $ `<external>/9567554376676449156/gtype.h:1876:9`! (GdkX11SelectionInputStream, gdk_x11_selection_input_stream, G_TYPE_INPUT_STREAMcxx . . $ `<external>/7672699116365272328/ginputstream.h:34:9`!);
58
59 static gbooleancxx . . $ gboolean#
60 gdk_x11_selection_input_stream_xeventcxx . . $ gdk_x11_selection_input_stream_xevent(61f50e92bbe27fc5). (GdkDisplaycxx . . $ GdkDisplay# *display,
61 const XEventcxx . . $ XEvent# *xevent,
62 gpointercxx . . $ gpointer# data);
63
64 static gbooleancxx . . $ gboolean#
65 gdk_x11_selection_input_stream_has_datacxx . . $ gdk_x11_selection_input_stream_has_data(906ad9be8cfa84d3). (GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream)
66 {
67 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
68
69 return g_async_queue_lengthcxx . . $ g_async_queue_length(5a676b5b2a16ae3b). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks.) > 0 || priv->completecxx . . $ GdkX11SelectionInputStreamPrivate#complete.;
70 }
71
72 /* NB: blocks when no data is in buffer */
73 static gsizecxx . . $ gsize#
74 gdk_x11_selection_input_stream_fill_buffercxx . . $ gdk_x11_selection_input_stream_fill_buffer(fa299f2d1e11a186). (GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream,
75 gucharcxx . . $ guchar# *buffer,
76 gsizecxx . . $ gsize# count)
77 {
78 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
79 GBytescxx . . $ GBytes# *bytes;
80
81 gsizecxx . . $ gsize# result = 0;
82
83 g_async_queue_lockcxx . . $ g_async_queue_lock(1fc3c781c06df682). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks.);
84
85 for (bytes = g_async_queue_pop_unlockedcxx . . $ g_async_queue_pop_unlocked(624ec77f9da27fb1). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks.);
86 bytes != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && count > 0;
87 bytes = g_async_queue_try_pop_unlockedcxx . . $ g_async_queue_try_pop_unlocked(624ec77f9da27fb1). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks.))
88 {
89 gsizecxx . . $ gsize# size = g_bytes_get_sizecxx . . $ g_bytes_get_size(e1085f059f6486). (bytes);
90
91 if (size == 0)
92 {
93 /* EOF marker, put it back */
94 g_async_queue_push_front_unlockedcxx . . $ g_async_queue_push_front_unlocked(fd2da36363e73393). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks., g_steal_pointercxx . . $ `<external>/1123956534522462559/gmem.h:250:9`! (&bytes));
95 break;
96 }
97 else if (size > count)
98 {
99 GBytescxx . . $ GBytes# *subbytes;
100 if (buffer)
101 memcpycxx . . $ memcpy(cc817cb175f282d). (buffer, g_bytes_get_datacxx . . $ g_bytes_get_data(e1c692f77020eb9f). (bytes, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!), count);
102 subbytes = g_bytes_new_from_bytescxx . . $ g_bytes_new_from_bytes(49ed18d85bcd8122). (bytes, count, size - count);
103 g_async_queue_push_front_unlockedcxx . . $ g_async_queue_push_front_unlocked(fd2da36363e73393). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks., subbytes);
104 size = count;
105 }
106 else
107 {
108 if (buffer)
109 memcpycxx . . $ memcpy(cc817cb175f282d). (buffer, g_bytes_get_datacxx . . $ g_bytes_get_data(e1c692f77020eb9f). (bytes, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!), size);
110 }
111
112 g_bytes_unrefcxx . . $ g_bytes_unref(8fa06155751f251e). (g_steal_pointercxx . . $ `<external>/1123956534522462559/gmem.h:250:9`! (&bytes));
113 result += size;
114 if (buffer)
115 buffer += size;
116 count -= size;
117 }
118
119 if (bytes)
120 g_async_queue_push_front_unlockedcxx . . $ g_async_queue_push_front_unlocked(fd2da36363e73393). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks., bytes);
121
122 g_async_queue_unlockcxx . . $ g_async_queue_unlock(1fc3c781c06df682). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks.);
123
124 return result;
125 }
126
127 static void
128 gdk_x11_selection_input_stream_flushcxx . . $ gdk_x11_selection_input_stream_flush(2f7322cae4ab0aa8). (GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream)
129 {
130 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
131 gssizecxx . . $ gssize# written;
132
133 if (!gdk_x11_selection_input_stream_has_datacxx . . $ gdk_x11_selection_input_stream_has_data(906ad9be8cfa84d3). (stream))
134 return;
135
136 if (priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
137 return;
138
139 written = gdk_x11_selection_input_stream_fill_buffercxx . . $ gdk_x11_selection_input_stream_fill_buffer(fa299f2d1e11a186). (stream, priv->pending_datacxx . . $ GdkX11SelectionInputStreamPrivate#pending_data., priv->pending_sizecxx . . $ GdkX11SelectionInputStreamPrivate#pending_size.);
140 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (priv->display, SELECTION,
141 "%s:%s: finishing read of %zd/%zu bytes",
142 priv->selection, priv->target,
143 written, priv->pending_size);
144 g_task_return_intcxx . . $ g_task_return_int(7c3ace265ce3c9d3). (priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task., written);
145
146 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&priv->pending_task);
147 priv->pending_datacxx . . $ GdkX11SelectionInputStreamPrivate#pending_data. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
148 priv->pending_sizecxx . . $ GdkX11SelectionInputStreamPrivate#pending_size. = 0;
149 }
150
151 static void
152 gdk_x11_selection_input_stream_completecxx . . $ gdk_x11_selection_input_stream_complete(2f7322cae4ab0aa8). (GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream)
153 {
154 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
155
156 if (priv->completecxx . . $ GdkX11SelectionInputStreamPrivate#complete.)
157 return;
158
159 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (priv->display, SELECTION,
160 "%s:%s: transfer complete",
161 priv->selection, priv->target);
162 priv->completecxx . . $ GdkX11SelectionInputStreamPrivate#complete. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
163
164 g_async_queue_pushcxx . . $ g_async_queue_push(fd2da36363e73393). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks., g_bytes_newcxx . . $ g_bytes_new(d53317e535e97081). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 0));
165 gdk_x11_selection_input_stream_flushcxx . . $ gdk_x11_selection_input_stream_flush(2f7322cae4ab0aa8). (stream);
166
167 GDK_X11_DISPLAYcxx . . $ `gdk/x11/gdkx11display.h:47:9`! (priv->display)->streamscxx . . $ _GdkX11Display#streams. = g_slist_removecxx . . $ g_slist_remove(f729b2814f82a8b5). (GDK_X11_DISPLAYcxx . . $ `gdk/x11/gdkx11display.h:47:9`! (priv->display)->streamscxx . . $ _GdkX11Display#streams., stream);
168 g_signal_handlers_disconnect_by_funccxx . . $ `<external>/15952772511652638895/gsignal.h:629:9`! (priv->display,
169 gdk_x11_selection_input_stream_xevent,
170 g_steal_pointercxx . . $ `<external>/1123956534522462559/gmem.h:250:9`! (&stream));
171 }
172
173 static gssizecxx . . $ gssize#
174 gdk_x11_selection_input_stream_readcxx . . $ gdk_x11_selection_input_stream_read(d319b4a7da6b5b85). (GInputStreamcxx . . $ GInputStream# *input_stream,
175 void *buffer,
176 gsizecxx . . $ gsize# count,
177 GCancellablecxx . . $ GCancellable# *cancellable,
178 GErrorcxx . . $ GError# **error)
179 {
180 GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream = GDK_X11_SELECTION_INPUT_STREAMcxx . . $ `gdk/x11/gdkselectioninputstream-x11.h:30:9`! (input_stream);
181 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
182 gssizecxx . . $ gssize# written;
183
184 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (priv->display, SELECTION,
185 "%s:%s: starting sync read of %zu bytes",
186 priv->selection, priv->target, count);
187 written = gdk_x11_selection_input_stream_fill_buffercxx . . $ gdk_x11_selection_input_stream_fill_buffer(fa299f2d1e11a186). (stream, buffer, count);
188 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (priv->display, SELECTION,
189 "%s:%s: finishing sync read of %zd/%zu bytes",
190 priv->selection, priv->target, written, count);
191 return written;
192 }
193
194 static gbooleancxx . . $ gboolean#
195 gdk_x11_selection_input_stream_closecxx . . $ gdk_x11_selection_input_stream_close(f1a7030bdfc1877a). (GInputStreamcxx . . $ GInputStream# *stream,
196 GCancellablecxx . . $ GCancellable# *cancellable,
197 GErrorcxx . . $ GError# **error)
198 {
199 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
200 }
201
202 static void
203 gdk_x11_selection_input_stream_read_asynccxx . . $ gdk_x11_selection_input_stream_read_async(b2a6357d7bbdcc82). (GInputStreamcxx . . $ GInputStream# *input_stream,
204 void *buffer,
205 gsizecxx . . $ gsize# count,
206 int io_priority,
207 GCancellablecxx . . $ GCancellable# *cancellable,
208 GAsyncReadyCallbackcxx . . $ GAsyncReadyCallback# callback,
209 gpointercxx . . $ gpointer# user_data)
210 {
211 GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream = GDK_X11_SELECTION_INPUT_STREAMcxx . . $ `gdk/x11/gdkselectioninputstream-x11.h:30:9`! (input_stream);
212 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
213 GTaskcxx . . $ GTask# *task;
214
215 task = g_task_newcxx . . $ g_task_new(292d224db8478659). (stream, cancellable, callback, user_data);
216 g_task_set_source_tagcxx . . $ `<external>/6581906438226475924/gtask.h:88:9`! (task, gdk_x11_selection_input_stream_read_async);
217 g_task_set_prioritycxx . . $ g_task_set_priority(b34b01b5a2b59ad8). (task, io_priority);
218
219 if (gdk_x11_selection_input_stream_has_datacxx . . $ gdk_x11_selection_input_stream_has_data(906ad9be8cfa84d3). (stream))
220 {
221 gssizecxx . . $ gssize# size;
222
223 size = gdk_x11_selection_input_stream_fill_buffercxx . . $ gdk_x11_selection_input_stream_fill_buffer(fa299f2d1e11a186). (stream, buffer, count);
224 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (priv->display, SELECTION,
225 "%s:%s: async read of %zd/%zu bytes",
226 priv->selection, priv->target, size, count);
227 g_task_return_intcxx . . $ g_task_return_int(7c3ace265ce3c9d3). (task, size);
228 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (task);
229 }
230 else
231 {
232 priv->pending_datacxx . . $ GdkX11SelectionInputStreamPrivate#pending_data. = buffer;
233 priv->pending_sizecxx . . $ GdkX11SelectionInputStreamPrivate#pending_size. = count;
234 priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task. = task;
235 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (priv->display, SELECTION,
236 "%s:%s: async read of %zu bytes pending",
237 priv->selection, priv->target, count);
238 }
239 }
240
241 static gssizecxx . . $ gssize#
242 gdk_x11_selection_input_stream_read_finishcxx . . $ gdk_x11_selection_input_stream_read_finish(70733318acd06dac). (GInputStreamcxx . . $ GInputStream# *stream,
243 GAsyncResultcxx . . $ GAsyncResult# *result,
244 GErrorcxx . . $ GError# **error)
245 {
246 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (g_task_is_valid (result, stream), -1);
247 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (g_task_get_source_tag (G_TASKcxx . . $ `<external>/6581906438226475924/gtask.h:33:9`! (result)) == gdk_x11_selection_input_stream_read_async, -1);
248
249 return g_task_propagate_intcxx . . $ g_task_propagate_int(4cdb87cfeeeb8d25). (G_TASKcxx . . $ `<external>/6581906438226475924/gtask.h:33:9`! (result), error);
250 }
251
252 static void
253 gdk_x11_selection_input_stream_close_asynccxx . . $ gdk_x11_selection_input_stream_close_async(ed7aecb52ac27ed7). (GInputStreamcxx . . $ GInputStream# *stream,
254 int io_priority,
255 GCancellablecxx . . $ GCancellable# *cancellable,
256 GAsyncReadyCallbackcxx . . $ GAsyncReadyCallback# callback,
257 gpointercxx . . $ gpointer# user_data)
258 {
259 GTaskcxx . . $ GTask# *task;
260
261 task = g_task_newcxx . . $ g_task_new(292d224db8478659). (stream, cancellable, callback, user_data);
262 g_task_set_source_tagcxx . . $ `<external>/6581906438226475924/gtask.h:88:9`! (task, gdk_x11_selection_input_stream_close_async);
263 g_task_return_booleancxx . . $ g_task_return_boolean(b34b01b5a2b59ad8). (task, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
264 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (task);
265 }
266
267 static gbooleancxx . . $ gboolean#
268 gdk_x11_selection_input_stream_close_finishcxx . . $ gdk_x11_selection_input_stream_close_finish(2545faca45906588). (GInputStreamcxx . . $ GInputStream# *stream,
269 GAsyncResultcxx . . $ GAsyncResult# *result,
270 GErrorcxx . . $ GError# **error)
271 {
272 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
273 }
274
275 static void
276 gdk_x11_selection_input_stream_finalizecxx . . $ gdk_x11_selection_input_stream_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
277 {
278 GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream = GDK_X11_SELECTION_INPUT_STREAMcxx . . $ `gdk/x11/gdkselectioninputstream-x11.h:30:9`! (object);
279 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
280
281 gdk_x11_selection_input_stream_completecxx . . $ gdk_x11_selection_input_stream_complete(2f7322cae4ab0aa8). (stream);
282
283 g_async_queue_unrefcxx . . $ g_async_queue_unref(1fc3c781c06df682). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks.);
284
285 g_freecxx . . $ g_free(5d22bdacc48458e8). (priv->selectioncxx . . $ GdkX11SelectionInputStreamPrivate#selection.);
286 g_freecxx . . $ g_free(5d22bdacc48458e8). (priv->targetcxx . . $ GdkX11SelectionInputStreamPrivate#target.);
287 g_freecxx . . $ g_free(5d22bdacc48458e8). (priv->propertycxx . . $ GdkX11SelectionInputStreamPrivate#property.);
288
289 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gdk_x11_selection_input_stream_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object);
290 }
291
292 static void
293 gdk_x11_selection_input_stream_class_initcxx . . $ gdk_x11_selection_input_stream_class_init(f644b72b94d23005). (GdkX11SelectionInputStreamClasscxx . . $ GdkX11SelectionInputStreamClass# *klass)
294 {
295 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
296 GInputStreamClasscxx . . $ GInputStreamClass# *istream_class = G_INPUT_STREAM_CLASScxx . . $ `<external>/7672699116365272328/ginputstream.h:36:9`! (klass);
297
298 object_class->finalizecxx . . $ _GObjectClass#finalize. = gdk_x11_selection_input_stream_finalizecxx . . $ gdk_x11_selection_input_stream_finalize(6087475fa43034d3).;
299
300 istream_class->read_fncxx . . $ _GInputStreamClass#read_fn. = gdk_x11_selection_input_stream_readcxx . . $ gdk_x11_selection_input_stream_read(d319b4a7da6b5b85).;
301 istream_class->close_fncxx . . $ _GInputStreamClass#close_fn. = gdk_x11_selection_input_stream_closecxx . . $ gdk_x11_selection_input_stream_close(f1a7030bdfc1877a).;
302
303 istream_class->read_asynccxx . . $ _GInputStreamClass#read_async. = gdk_x11_selection_input_stream_read_asynccxx . . $ gdk_x11_selection_input_stream_read_async(b2a6357d7bbdcc82).;
304 istream_class->read_finishcxx . . $ _GInputStreamClass#read_finish. = gdk_x11_selection_input_stream_read_finishcxx . . $ gdk_x11_selection_input_stream_read_finish(70733318acd06dac).;
305 istream_class->close_asynccxx . . $ _GInputStreamClass#close_async. = gdk_x11_selection_input_stream_close_asynccxx . . $ gdk_x11_selection_input_stream_close_async(ed7aecb52ac27ed7).;
306 istream_class->close_finishcxx . . $ _GInputStreamClass#close_finish. = gdk_x11_selection_input_stream_close_finishcxx . . $ gdk_x11_selection_input_stream_close_finish(2545faca45906588).;
307 }
308
309 static void
310 gdk_x11_selection_input_stream_initcxx . . $ gdk_x11_selection_input_stream_init(2f7322cae4ab0aa8). (GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream)
311 {
312 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
313
314 priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks. = g_async_queue_new_fullcxx . . $ g_async_queue_new_full(a5bd63b227566187). ((GDestroyNotifycxx . . $ GDestroyNotify#) g_bytes_unrefcxx . . $ g_bytes_unref(8fa06155751f251e).);
315 }
316
317 static void
318 XFree_without_return_valuecxx . . $ XFree_without_return_value(5d22bdacc48458e8). (gpointercxx . . $ gpointer# data)
319 {
320 XFreecxx . . $ XFree(dedf1e9b1c614a07). (data);
321 }
322
323 static GBytescxx . . $ GBytes# *
324 get_selection_propertycxx . . $ get_selection_property(8d3552938bad174d). (Displaycxx . . $ Display# *display,
325 Windowcxx . . $ Window# owner,
326 Atomcxx . . $ Atom# property,
327 Atomcxx . . $ Atom# *ret_type,
328 int *ret_format)
329 {
330 gulongcxx . . $ gulong# nitems;
331 gulongcxx . . $ gulong# nbytes;
332 Atomcxx . . $ Atom# prop_type;
333 int prop_format;
334 gucharcxx . . $ guchar# *data = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
335
336 if (XGetWindowPropertycxx . . $ XGetWindowProperty(46eeb5a8c23bb2ad). (display, owner, property,
337 0, 0x1FFFFFFF, Falsecxx . . $ `<external>/7073035915403465041/Xlib.h:81:9`!,
338 AnyPropertyTypecxx . . $ `<external>/1208737181511191802/X.h:131:9`!, &prop_type, &prop_format,
339 &nitems, &nbytes, &data) != Successcxx . . $ `<external>/1208737181511191802/X.h:350:9`!)
340 goto err;
341
342 if (prop_type != Nonecxx . . $ `<external>/1208737181511191802/X.h:115:9`!)
343 {
344 gsizecxx . . $ gsize# length;
345
346 switch (prop_format)
347 {
348 case 8:
349 length = nitems;
350 break;
351 case 16:
352 length = sizeof (short) * nitems;
353 break;
354 case 32:
355 length = sizeof (long) * nitems;
356 break;
357 default:
358 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Unknown XGetWindowProperty() format %u", prop_format);
359 goto err;
360 }
361
362 *ret_type = prop_type;
363 *ret_format = prop_format;
364
365 return g_bytes_new_with_free_funccxx . . $ g_bytes_new_with_free_func(cae75dadd221f3bf). (data,
366 length,
367 XFree_without_return_valuecxx . . $ XFree_without_return_value(5d22bdacc48458e8).,
368 data);
369 }
370
371 err:
372 if (data)
373 XFreecxx . . $ XFree(dedf1e9b1c614a07). (data);
374
375 *ret_type = Nonecxx . . $ `<external>/1208737181511191802/X.h:115:9`!;
376 *ret_format = 0;
377
378 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
379 }
380
381
382 static gbooleancxx . . $ gboolean#
383 gdk_x11_selection_input_stream_xeventcxx . . $ gdk_x11_selection_input_stream_xevent(61f50e92bbe27fc5). (GdkDisplaycxx . . $ GdkDisplay# *display,
384 const XEventcxx . . $ XEvent# *xevent,
385 gpointercxx . . $ gpointer# data)
386 {
387 GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream = GDK_X11_SELECTION_INPUT_STREAMcxx . . $ `gdk/x11/gdkselectioninputstream-x11.h:30:9`! (data);
388 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
389 Displaycxx . . $ Display# *xdisplay;
390 Windowcxx . . $ Window# xwindow;
391 GBytescxx . . $ GBytes# *bytes;
392 Atomcxx . . $ Atom# type;
393 int format;
394
395 xdisplay = gdk_x11_display_get_xdisplaycxx . . $ gdk_x11_display_get_xdisplay(b329f562ca883dd4). (priv->displaycxx . . $ GdkX11SelectionInputStreamPrivate#display.);
396 xwindow = GDK_X11_DISPLAYcxx . . $ `gdk/x11/gdkx11display.h:47:9`! (priv->display)->leader_windowcxx . . $ _GdkX11Display#leader_window.;
397
398 if (xevent->xanycxx . . $ _XEvent#xany..displaycxx . . $ $anonymous_type_17d7f07cf933eea7_53#display. != xdisplay ||
399 xevent->xanycxx . . $ _XEvent#xany..windowcxx . . $ $anonymous_type_17d7f07cf933eea7_53#window. != xwindow)
400 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
401
402 switch (xevent->typecxx . . $ _XEvent#type.)
403 {
404 case PropertyNotifycxx . . $ `<external>/1208737181511191802/X.h:207:9`!:
405 if (!priv->incrcxx . . $ GdkX11SelectionInputStreamPrivate#incr. ||
406 xevent->xpropertycxx . . $ _XEvent#xproperty..atomcxx . . $ $anonymous_type_17d7f07cf933eea7_44#atom. != priv->xpropertycxx . . $ GdkX11SelectionInputStreamPrivate#xproperty. ||
407 xevent->xpropertycxx . . $ _XEvent#xproperty..statecxx . . $ $anonymous_type_17d7f07cf933eea7_44#state. != PropertyNewValuecxx . . $ `<external>/1208737181511191802/X.h:308:9`!)
408 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
409
410 bytes = get_selection_propertycxx . . $ get_selection_property(8d3552938bad174d). (xdisplay, xwindow, xevent->xpropertycxx . . $ _XEvent#xproperty..atomcxx . . $ $anonymous_type_17d7f07cf933eea7_44#atom., &type, &format);
411 if (bytes == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
412 {
413 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (display, SELECTION,
414 "%s:%s: got PropertyNotify erroring out of INCR",
415 priv->selection, priv->target);
416 /* error, should we signal one? */
417 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&stream, gdk_x11_selection_input_stream_complete);
418 }
419 else if (g_bytes_get_sizecxx . . $ g_bytes_get_size(e1085f059f6486). (bytes) == 0 || type == Nonecxx . . $ `<external>/1208737181511191802/X.h:115:9`!)
420 {
421 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (display, SELECTION,
422 "%s:%s: got PropertyNotify ending INCR",
423 priv->selection, priv->target);
424 g_bytes_unrefcxx . . $ g_bytes_unref(8fa06155751f251e). (bytes);
425 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&stream, gdk_x11_selection_input_stream_complete);
426 }
427 else
428 {
429 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (display, SELECTION,
430 "%s:%s: got PropertyNotify during INCR with %zu bytes",
431 priv->selection, priv->target,
432 g_bytes_get_size (bytes));
433 g_async_queue_pushcxx . . $ g_async_queue_push(fd2da36363e73393). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks., bytes);
434 gdk_x11_selection_input_stream_flushcxx . . $ gdk_x11_selection_input_stream_flush(2f7322cae4ab0aa8). (stream);
435 }
436
437 XDeletePropertycxx . . $ XDeleteProperty(b373b037aa36b05f). (xdisplay, xwindow, xevent->xpropertycxx . . $ _XEvent#xproperty..atomcxx . . $ $anonymous_type_17d7f07cf933eea7_44#atom.);
438
439 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
440
441 case SelectionNotifycxx . . $ `<external>/1208737181511191802/X.h:210:9`!:
442 {
443 GTaskcxx . . $ GTask# *task;
444
445 /* selection is not for us */
446 if (priv->xselectioncxx . . $ GdkX11SelectionInputStreamPrivate#xselection. != xevent->xselectioncxx . . $ _XEvent#xselection..selectioncxx . . $ $anonymous_type_17d7f07cf933eea7_47#selection. ||
447 priv->xtargetcxx . . $ GdkX11SelectionInputStreamPrivate#xtarget. != xevent->xselectioncxx . . $ _XEvent#xselection..targetcxx . . $ $anonymous_type_17d7f07cf933eea7_47#target.)
448 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
449
450 /* We already received a selectionNotify before */
451 if (priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ||
452 g_task_get_source_tagcxx . . $ g_task_get_source_tag(3075fc2989a57705). (priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task.) != gdk_x11_selection_input_stream_new_asynccxx . . $ gdk_x11_selection_input_stream_new_async(874ae94de0b98c1b).)
453 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
454
455 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (display, SELECTION,
456 "%s:%s: got SelectionNotify",
457 priv->selection, priv->target);
458
459 task = priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task.;
460 priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
461
462 if (xevent->xselectioncxx . . $ _XEvent#xselection..propertycxx . . $ $anonymous_type_17d7f07cf933eea7_47#property. == Nonecxx . . $ `<external>/1208737181511191802/X.h:115:9`!)
463 {
464 g_task_return_new_errorcxx . . $ g_task_return_new_error(4e3bcb70db2a815a). (task,
465 G_IO_ERRORcxx . . $ `<external>/13894955190784973534/gioerror.h:42:9`!,
466 G_IO_ERROR_NOT_FOUNDcxx . . $ G_IO_ERROR_NOT_FOUND.,
467 _cxx . . $ `<external>/16453136837583379545/gi18n-lib.h:32:10`!("Format %s not supported"), priv->targetcxx . . $ GdkX11SelectionInputStreamPrivate#target.);
468 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&stream, gdk_x11_selection_input_stream_complete);
469 }
470 else
471 {
472 bytes = get_selection_propertycxx . . $ get_selection_property(8d3552938bad174d). (xdisplay, xwindow, xevent->xselectioncxx . . $ _XEvent#xselection..propertycxx . . $ $anonymous_type_17d7f07cf933eea7_47#property., &priv->xtypecxx . . $ GdkX11SelectionInputStreamPrivate#xtype., &priv->formatcxx . . $ GdkX11SelectionInputStreamPrivate#format.);
473 priv->typecxx . . $ GdkX11SelectionInputStreamPrivate#type. = gdk_x11_get_xatom_name_for_displaycxx . . $ gdk_x11_get_xatom_name_for_display(8095926e3d569531). (priv->displaycxx . . $ GdkX11SelectionInputStreamPrivate#display., priv->xtypecxx . . $ GdkX11SelectionInputStreamPrivate#xtype.);
474
475 g_task_return_pointercxx . . $ g_task_return_pointer(2e97a86ccb74176a). (task, g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (stream), g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).);
476
477 if (bytes == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
478 {
479 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&stream, gdk_x11_selection_input_stream_complete);
480 }
481 else
482 {
483 if (priv->xtypecxx . . $ GdkX11SelectionInputStreamPrivate#xtype. == gdk_x11_get_xatom_by_name_for_displaycxx . . $ gdk_x11_get_xatom_by_name_for_display(6f2c403bf89d30d8). (priv->displaycxx . . $ GdkX11SelectionInputStreamPrivate#display., "INCR"))
484 {
485 /* The remainder of the selection will come through PropertyNotify
486 events on xwindow */
487 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (display, SELECTION,
488 "%s:%s: initiating INCR transfer",
489 priv->selection, priv->target);
490 priv->incrcxx . . $ GdkX11SelectionInputStreamPrivate#incr. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
491 gdk_x11_selection_input_stream_flushcxx . . $ gdk_x11_selection_input_stream_flush(2f7322cae4ab0aa8). (stream);
492 }
493 else
494 {
495 GDK_DISPLAY_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:133:9`! (display, SELECTION,
496 "%s:%s: reading %zu bytes",
497 priv->selection, priv->target,
498 g_bytes_get_size (bytes));
499 g_async_queue_pushcxx . . $ g_async_queue_push(fd2da36363e73393). (priv->chunkscxx . . $ GdkX11SelectionInputStreamPrivate#chunks., bytes);
500
501 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&stream, gdk_x11_selection_input_stream_complete);
502 }
503 }
504
505 XDeletePropertycxx . . $ XDeleteProperty(b373b037aa36b05f). (xdisplay, xwindow, xevent->xselectioncxx . . $ _XEvent#xselection..propertycxx . . $ $anonymous_type_17d7f07cf933eea7_47#property.);
506 }
507
508 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (task);
509 }
510 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
511
512 default:
513 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
514 }
515 }
516
517 void
518 gdk_x11_selection_input_stream_new_asynccxx . . $ gdk_x11_selection_input_stream_new_async(874ae94de0b98c1b). (GdkDisplaycxx . . $ GdkDisplay# *display,
519 const char *selection,
520 const char *target,
521 guint32cxx . . $ guint32# timestamp,
522 int io_priority,
523 GCancellablecxx . . $ GCancellable# *cancellable,
524 GAsyncReadyCallbackcxx . . $ GAsyncReadyCallback# callback,
525 gpointercxx . . $ gpointer# user_data)
526 {
527 GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream;
528 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv;
529
530 stream = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GDK_TYPE_X11_SELECTION_INPUT_STREAMcxx . . $ `gdk/x11/gdkselectioninputstream-x11.h:29:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
531 priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
532
533 priv->displaycxx . . $ GdkX11SelectionInputStreamPrivate#display. = display;
534 GDK_X11_DISPLAYcxx . . $ `gdk/x11/gdkx11display.h:47:9`! (display)->streamscxx . . $ _GdkX11Display#streams. = g_slist_prependcxx . . $ g_slist_prepend(6eb923d8c45a5456). (GDK_X11_DISPLAYcxx . . $ `gdk/x11/gdkx11display.h:47:9`! (display)->streamscxx . . $ _GdkX11Display#streams., stream);
535 priv->selectioncxx . . $ GdkX11SelectionInputStreamPrivate#selection. = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (selection);
536 priv->xselectioncxx . . $ GdkX11SelectionInputStreamPrivate#xselection. = gdk_x11_get_xatom_by_name_for_displaycxx . . $ gdk_x11_get_xatom_by_name_for_display(6f2c403bf89d30d8). (display, priv->selectioncxx . . $ GdkX11SelectionInputStreamPrivate#selection.);
537 priv->targetcxx . . $ GdkX11SelectionInputStreamPrivate#target. = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (target);
538 priv->xtargetcxx . . $ GdkX11SelectionInputStreamPrivate#xtarget. = gdk_x11_get_xatom_by_name_for_displaycxx . . $ gdk_x11_get_xatom_by_name_for_display(6f2c403bf89d30d8). (display, priv->targetcxx . . $ GdkX11SelectionInputStreamPrivate#target.);
539 priv->propertycxx . . $ GdkX11SelectionInputStreamPrivate#property. = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). ("GDK_SELECTION_%p", stream);
540 priv->xpropertycxx . . $ GdkX11SelectionInputStreamPrivate#xproperty. = gdk_x11_get_xatom_by_name_for_displaycxx . . $ gdk_x11_get_xatom_by_name_for_display(6f2c403bf89d30d8). (display, priv->propertycxx . . $ GdkX11SelectionInputStreamPrivate#property.);
541
542 g_signal_connect_datacxx . . $ g_signal_connect_data(2a7b3bd665ea804c). (display, "xevent",
543 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gdk_x11_selection_input_stream_xevent),
544 g_steal_pointercxx . . $ `<external>/1123956534522462559/gmem.h:250:9`! (&stream),
545 (GClosureNotifycxx . . $ GClosureNotify#) g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8)., 0);
546
547 XConvertSelectioncxx . . $ XConvertSelection(f7f722e6ea021764). (GDK_DISPLAY_XDISPLAYcxx . . $ `gdk/x11/gdkprivate-x11.h:264:9`! (display),
548 priv->xselectioncxx . . $ GdkX11SelectionInputStreamPrivate#xselection.,
549 priv->xtargetcxx . . $ GdkX11SelectionInputStreamPrivate#xtarget.,
550 priv->xpropertycxx . . $ GdkX11SelectionInputStreamPrivate#xproperty.,
551 GDK_X11_DISPLAYcxx . . $ `gdk/x11/gdkx11display.h:47:9`! (display)->leader_windowcxx . . $ _GdkX11Display#leader_window.,
552 timestamp);
553
554 priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task. = g_task_newcxx . . $ g_task_new(292d224db8478659). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, cancellable, callback, user_data);
555 g_task_set_source_tagcxx . . $ `<external>/6581906438226475924/gtask.h:88:9`! (priv->pending_task, gdk_x11_selection_input_stream_new_async);
556 g_task_set_prioritycxx . . $ g_task_set_priority(b34b01b5a2b59ad8). (priv->pending_taskcxx . . $ GdkX11SelectionInputStreamPrivate#pending_task., io_priority);
557 }
558
559 GInputStreamcxx . . $ GInputStream# *
560 gdk_x11_selection_input_stream_new_finishcxx . . $ gdk_x11_selection_input_stream_new_finish(c4cc12a114feb997). (GAsyncResultcxx . . $ GAsyncResult# *result,
561 const char **type,
562 int *format,
563 GErrorcxx . . $ GError# **error)
564 {
565 GdkX11SelectionInputStreamcxx . . $ GdkX11SelectionInputStream# *stream;
566 GTaskcxx . . $ GTask# *task;
567
568 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (g_task_is_valid (result, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
569 task = G_TASKcxx . . $ `<external>/6581906438226475924/gtask.h:33:9`! (result);
570 g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (g_task_get_source_tag (task) == gdk_x11_selection_input_stream_new_async, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
571
572 stream = g_task_propagate_pointercxx . . $ g_task_propagate_pointer(472d3929f510ba3a). (task, error);
573 if (stream)
574 {
575 GdkX11SelectionInputStreamPrivatecxx . . $ GdkX11SelectionInputStreamPrivate# *priv = gdk_x11_selection_input_stream_get_instance_privatecxx . . $ gdk_x11_selection_input_stream_get_instance_private(f241a20d5f08dad). (stream);
576
577 if (type)
578 *type = priv->typecxx . . $ GdkX11SelectionInputStreamPrivate#type.;
579 if (format)
580 *format = priv->formatcxx . . $ GdkX11SelectionInputStreamPrivate#format.;
581 }
582
583 return G_INPUT_STREAMcxx . . $ `<external>/7672699116365272328/ginputstream.h:35:9`! (stream);
584 }
585