Debian Codegraph @

gdk/filetransferportal.c

raw symbols SCIP
1 /*
2 * Copyright (C) 2018 Matthias Clasen
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "config.h"cxx . . $ `<file>/build/config.h`/
19
20 #include <errno.h>
21
22 #include <sys/types.h>
23 #include <sys/stat.h>
24 #include <fcntl.h>
25
26 #include "gdkcontentformats.h"cxx . . $ `<file>/gdk/gdkcontentformats.h`/
27 #include "gdkcontentserializer.h"cxx . . $ `<file>/gdk/gdkcontentserializer.h`/
28 #include "gdkcontentdeserializer.h"cxx . . $ `<file>/gdk/gdkcontentdeserializer.h`/
29 #include "gdkdisplay.h"cxx . . $ `<file>/gdk/gdkdisplay.h`/
30 #include "gdkdebugprivate.h"cxx . . $ `<file>/gdk/gdkdebugprivate.h`/
31 #include "gdkprivate.h"cxx . . $ `<file>/gdk/gdkprivate.h`/
32
33 #include <gio/gio.h>
34
35 #ifdef G_OS_UNIXcxx . . $ `<external>/10505296616216143549/glibconfig.h:120:9`!
36
37 #include <gio/gunixfdlist.h>
38
39 #ifndef O_PATHcxx . . $ `<external>/14578502075116107718/fcntl-linux.h:148:10`!
40 #define O_PATH 0
41 #endif
42
43 #ifndef O_CLOEXECcxx . . $ `<external>/14578502075116107718/fcntl-linux.h:142:10`!
44 #define O_CLOEXEC 0
45 #else
46 #define HAVE_O_CLOEXECcxx . . $ `gdk/filetransferportal.c:46:9`! 1
47 #endif
48
49 #include "filetransferportalprivate.h"cxx . . $ `<file>/gdk/filetransferportalprivate.h`/
50
51 static GDBusProxycxx . . $ GDBusProxy# *file_transfer_proxycxx . . $ file_transfer_proxy. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
52
53 typedef structcxx . . $ $anonymous_type_35b394fb45845eb1_0# {
54 GTaskcxx . . $ GTask# *taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task.;
55 const char **filescxx . . $ $anonymous_type_35b394fb45845eb1_0#files.;
56 int lencxx . . $ $anonymous_type_35b394fb45845eb1_0#len.;
57 int startcxx . . $ $anonymous_type_35b394fb45845eb1_0#start.;
58 } AddFileDatacxx . . $ AddFileData#;
59
60 static void add_filescxx . . $ add_files(9ddc1061e2826506). (GDBusProxycxx . . $ GDBusProxy# *proxy,
61 AddFileDatacxx . . $ AddFileData# *afd);
62
63 static void
64 add_files_donecxx . . $ add_files_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *object,
65 GAsyncResultcxx . . $ GAsyncResult# *result,
66 gpointercxx . . $ gpointer# data)
67 {
68 GDBusProxycxx . . $ GDBusProxy# *proxy = G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (object);
69 AddFileDatacxx . . $ AddFileData# *afd = data;
70 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
71 GVariantcxx . . $ GVariant# *ret;
72
73 ret = g_dbus_proxy_call_with_unix_fd_list_finishcxx . . $ g_dbus_proxy_call_with_unix_fd_list_finish(2e4b5b29d28abf5c). (proxy, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, result, &error);
74 if (ret == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
75 {
76 g_task_return_errorcxx . . $ g_task_return_error(3a392c0ba1e0b727). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task., error);
77 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task.);
78 g_freecxx . . $ g_free(5d22bdacc48458e8). (afd);
79 return;
80 }
81
82 g_variant_unrefcxx . . $ g_variant_unref(86dbca581f53fd84). (ret);
83
84 if (afd->startcxx . . $ $anonymous_type_35b394fb45845eb1_0#start. >= afd->lencxx . . $ $anonymous_type_35b394fb45845eb1_0#len.)
85 {
86 g_task_return_booleancxx . . $ g_task_return_boolean(b34b01b5a2b59ad8). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
87 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task.);
88 g_freecxx . . $ g_free(5d22bdacc48458e8). (afd);
89 return;
90 }
91
92 add_filescxx . . $ add_files(9ddc1061e2826506). (proxy, afd);
93 }
94
95 /* We call AddFiles in chunks of 16 to avoid running into
96 * the per-message fd limit of the bus.
97 */
98 static void
99 add_filescxx . . $ add_files(9ddc1061e2826506). (GDBusProxycxx . . $ GDBusProxy# *proxy,
100 AddFileDatacxx . . $ AddFileData# *afd)
101 {
102 GUnixFDListcxx . . $ GUnixFDList# *fd_list;
103 GVariantBuildercxx . . $ GVariantBuilder# fds, options;
104 int i;
105 char *key;
106
107 g_variant_builder_initcxx . . $ g_variant_builder_init(b7f11988e84a5f70). (&fds, G_VARIANT_TYPEcxx . . $ `<external>/14064154155447831270/gvarianttype.h:298:10`! ("ah"));
108 fd_list = g_unix_fd_list_newcxx . . $ g_unix_fd_list_new(2f03ba904a9d4e55). ();
109
110 for (i = 0; afd->filescxx . . $ $anonymous_type_35b394fb45845eb1_0#files.[afd->startcxx . . $ $anonymous_type_35b394fb45845eb1_0#start. + i]; i++)
111 {
112 int fd;
113 int fd_in;
114 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
115
116 if (i == 16)
117 break;
118
119 fd = opencxx . . $ open(e156e3aa1e5c4ad1). (afd->filescxx . . $ $anonymous_type_35b394fb45845eb1_0#files.[afd->startcxx . . $ $anonymous_type_35b394fb45845eb1_0#start. + i], O_PATHcxx . . $ `<external>/14578502075116107718/fcntl-linux.h:148:10`! | O_CLOEXECcxx . . $ `<external>/14578502075116107718/fcntl-linux.h:142:10`!);
120 if (fd == -1)
121 {
122 g_task_return_new_errorcxx . . $ g_task_return_new_error(4e3bcb70db2a815a). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task., G_IO_ERRORcxx . . $ `<external>/13894955190784973534/gioerror.h:42:9`!, g_io_error_from_errnocxx . . $ g_io_error_from_errno(b47e8a466716fd56). (errnocxx . . $ `<external>/17633486526465735210/errno.h:38:10`!),
123 "Failed to open %s", afd->filescxx . . $ $anonymous_type_35b394fb45845eb1_0#files.[afd->startcxx . . $ $anonymous_type_35b394fb45845eb1_0#start. + i]);
124 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task.);
125 g_freecxx . . $ g_free(5d22bdacc48458e8). (afd);
126 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (fd_list);
127 return;
128 }
129
130 #ifndef HAVE_O_CLOEXECcxx . . $ `gdk/filetransferportal.c:46:9`!
131 fcntl (fd, F_SETFD, FD_CLOEXEC);
132 #endif
133 fd_in = g_unix_fd_list_appendcxx . . $ g_unix_fd_list_append(57b895fb290201ec). (fd_list, fd, &error);
134 closecxx . . $ close(7864480464b09eea). (fd);
135
136 if (fd_in == -1)
137 {
138 g_task_return_errorcxx . . $ g_task_return_error(3a392c0ba1e0b727). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task., error);
139 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task.);
140 g_freecxx . . $ g_free(5d22bdacc48458e8). (afd);
141 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (fd_list);
142 return;
143 }
144
145 g_variant_builder_addcxx . . $ g_variant_builder_add(a422658e2ec2035a). (&fds, "h", fd_in);
146 }
147
148 afd->startcxx . . $ $anonymous_type_35b394fb45845eb1_0#start. += 16;
149
150 key = (char *)g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (afd->task), "key");
151
152 g_variant_builder_initcxx . . $ g_variant_builder_init(b7f11988e84a5f70). (&options, G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
153 g_dbus_proxy_call_with_unix_fd_listcxx . . $ g_dbus_proxy_call_with_unix_fd_list(d8e9b94231531971). (proxy,
154 "AddFiles",
155 g_variant_newcxx . . $ g_variant_new(59b7d1999758b6d9). ("(saha{sv})", key, &fds, &options),
156 0, -1,
157 fd_list,
158 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
159 add_files_donecxx . . $ add_files_done(aa1d200d824d915d)., afd);
160
161 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (fd_list);
162 }
163
164 static void
165 start_session_donecxx . . $ start_session_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *object,
166 GAsyncResultcxx . . $ GAsyncResult# *result,
167 gpointercxx . . $ gpointer# data)
168 {
169 GDBusProxycxx . . $ GDBusProxy# *proxy = G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (object);
170 AddFileDatacxx . . $ AddFileData# *afd = data;
171 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
172 GVariantcxx . . $ GVariant# *ret;
173 const char *key;
174
175 ret = g_dbus_proxy_call_finishcxx . . $ g_dbus_proxy_call_finish(69b2b0e4b7fb8cc4). (proxy, result, &error);
176 if (ret == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
177 {
178 g_task_return_errorcxx . . $ g_task_return_error(3a392c0ba1e0b727). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task., error);
179 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task.);
180 g_freecxx . . $ g_free(5d22bdacc48458e8). (afd);
181 return;
182 }
183
184 g_variant_getcxx . . $ g_variant_get(671e9cd8f09cd612). (ret, "(&s)", &key);
185
186 g_object_set_data_fullcxx . . $ g_object_set_data_full(218df00be1d2a06c). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (afd->task), "key", g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (key), g_freecxx . . $ g_free(5d22bdacc48458e8).);
187
188 g_variant_unrefcxx . . $ g_variant_unref(86dbca581f53fd84). (ret);
189
190 add_filescxx . . $ add_files(9ddc1061e2826506). (proxy, afd);
191 }
192
193 void
194 file_transfer_portal_register_filescxx . . $ file_transfer_portal_register_files(26aa26fe56e7db8c). (const char **files,
195 gbooleancxx . . $ gboolean# writable,
196 GAsyncReadyCallbackcxx . . $ GAsyncReadyCallback# callback,
197 gpointercxx . . $ gpointer# data)
198 {
199 GTaskcxx . . $ GTask# *task;
200 AddFileDatacxx . . $ AddFileData# *afd;
201 GVariantBuildercxx . . $ GVariantBuilder# options;
202
203 task = g_task_newcxx . . $ g_task_new(292d224db8478659). (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`!, callback, data);
204
205 if (file_transfer_proxycxx . . $ file_transfer_proxy. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
206 {
207 g_task_return_new_errorcxx . . $ g_task_return_new_error(4e3bcb70db2a815a). (task, G_IO_ERRORcxx . . $ `<external>/13894955190784973534/gioerror.h:42:9`!, G_IO_ERROR_NOT_SUPPORTEDcxx . . $ G_IO_ERROR_NOT_SUPPORTED.,
208 "No portal found");
209 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (task);
210 return;
211 }
212
213 afd = g_newcxx . . $ `<external>/1123956534522462559/gmem.h:318:9`! (AddFileData, 1);
214 afd->taskcxx . . $ $anonymous_type_35b394fb45845eb1_0#task. = task;
215 afd->filescxx . . $ $anonymous_type_35b394fb45845eb1_0#files. = files;
216 afd->lencxx . . $ $anonymous_type_35b394fb45845eb1_0#len. = g_strv_lengthcxx . . $ g_strv_length(658e6f1ffe3b2f0c). ((char **)files);
217 afd->startcxx . . $ $anonymous_type_35b394fb45845eb1_0#start. = 0;
218
219 GDK_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:138:9`! (DND, "file transfer portal: registering %d files", afd->len);
220
221 g_variant_builder_initcxx . . $ g_variant_builder_init(b7f11988e84a5f70). (&options, G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
222 g_variant_builder_addcxx . . $ g_variant_builder_add(a422658e2ec2035a). (&options, "{sv}", "writable", g_variant_new_booleancxx . . $ g_variant_new_boolean(d662e1c280be90d3). (writable));
223 g_variant_builder_addcxx . . $ g_variant_builder_add(a422658e2ec2035a). (&options, "{sv}", "autostop", g_variant_new_booleancxx . . $ g_variant_new_boolean(d662e1c280be90d3). (TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!));
224
225 g_dbus_proxy_callcxx . . $ g_dbus_proxy_call(db73b1a456e773ea). (file_transfer_proxycxx . . $ file_transfer_proxy., "StartTransfer",
226 g_variant_newcxx . . $ g_variant_new(59b7d1999758b6d9). ("(a{sv})", &options),
227 0, -1, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, start_session_donecxx . . $ start_session_done(aa1d200d824d915d)., afd);
228 }
229
230 gbooleancxx . . $ gboolean#
231 file_transfer_portal_register_files_finishcxx . . $ file_transfer_portal_register_files_finish(e37aeec61124c7a7). (GAsyncResultcxx . . $ GAsyncResult# *result,
232 char **key,
233 GErrorcxx . . $ GError# **error)
234 {
235 if (g_task_propagate_booleancxx . . $ g_task_propagate_boolean(21d91baf98d56582). (G_TASKcxx . . $ `<external>/6581906438226475924/gtask.h:33:9`! (result), error))
236 {
237 *key = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (g_object_get_data (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (result), "key"));
238 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
239 }
240
241 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
242 }
243
244 static void
245 retrieve_files_donecxx . . $ retrieve_files_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *object,
246 GAsyncResultcxx . . $ GAsyncResult# *result,
247 gpointercxx . . $ gpointer# data)
248 {
249 GDBusProxycxx . . $ GDBusProxy# *proxy = G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (object);
250 GTaskcxx . . $ GTask# *task = data;
251 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
252 GVariantcxx . . $ GVariant# *ret;
253 char **files;
254
255 ret = g_dbus_proxy_call_finishcxx . . $ g_dbus_proxy_call_finish(69b2b0e4b7fb8cc4). (proxy, result, &error);
256 if (ret == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
257 {
258 g_task_return_errorcxx . . $ g_task_return_error(3a392c0ba1e0b727). (task, error);
259 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (task);
260 return;
261 }
262
263 g_variant_getcxx . . $ g_variant_get(671e9cd8f09cd612). (ret, "(^as)", &files);
264
265 g_object_set_data_fullcxx . . $ g_object_set_data_full(218df00be1d2a06c). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (task), "files", files, (GDestroyNotifycxx . . $ GDestroyNotify#)g_strfreevcxx . . $ g_strfreev(3ed91490e421178f).);
266
267 g_variant_unrefcxx . . $ g_variant_unref(86dbca581f53fd84). (ret);
268
269 g_task_return_booleancxx . . $ g_task_return_boolean(b34b01b5a2b59ad8). (task, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
270 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (task);
271 }
272
273 void
274 file_transfer_portal_retrieve_filescxx . . $ file_transfer_portal_retrieve_files(e8ca6e919792d6b4). (const char *key,
275 GAsyncReadyCallbackcxx . . $ GAsyncReadyCallback# callback,
276 gpointercxx . . $ gpointer# data)
277 {
278 GTaskcxx . . $ GTask# *task;
279 GVariantBuildercxx . . $ GVariantBuilder# options;
280
281 task = g_task_newcxx . . $ g_task_new(292d224db8478659). (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`!, callback, data);
282
283 if (file_transfer_proxycxx . . $ file_transfer_proxy. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
284 {
285 g_task_return_new_errorcxx . . $ g_task_return_new_error(4e3bcb70db2a815a). (task, G_IO_ERRORcxx . . $ `<external>/13894955190784973534/gioerror.h:42:9`!, G_IO_ERROR_NOT_SUPPORTEDcxx . . $ G_IO_ERROR_NOT_SUPPORTED.,
286 "No portal found");
287 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (task);
288 return;
289 }
290
291 g_variant_builder_initcxx . . $ g_variant_builder_init(b7f11988e84a5f70). (&options, G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
292 g_dbus_proxy_callcxx . . $ g_dbus_proxy_call(db73b1a456e773ea). (file_transfer_proxycxx . . $ file_transfer_proxy.,
293 "RetrieveFiles",
294 g_variant_newcxx . . $ g_variant_new(59b7d1999758b6d9). ("(sa{sv})", key, &options),
295 0, -1, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
296 retrieve_files_donecxx . . $ retrieve_files_done(aa1d200d824d915d)., task);
297 }
298
299 gbooleancxx . . $ gboolean#
300 file_transfer_portal_retrieve_files_finishcxx . . $ file_transfer_portal_retrieve_files_finish(4079627873717f84). (GAsyncResultcxx . . $ GAsyncResult# *result,
301 char ***files,
302 GErrorcxx . . $ GError# **error)
303 {
304 if (g_task_propagate_booleancxx . . $ g_task_propagate_boolean(21d91baf98d56582). (G_TASKcxx . . $ `<external>/6581906438226475924/gtask.h:33:9`! (result), error))
305 {
306 *files = g_strdupvcxx . . $ g_strdupv(b6d3baa0f5548ffa). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (result), "files"));
307 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
308 }
309
310 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
311 }
312
313
314 /* serializer */
315
316 static void
317 file_serializer_finishcxx . . $ file_serializer_finish(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source,
318 GAsyncResultcxx . . $ GAsyncResult# *result,
319 gpointercxx . . $ gpointer# serializer)
320 {
321 GOutputStreamcxx . . $ GOutputStream# *stream = G_OUTPUT_STREAMcxx . . $ `<external>/12960712863927311157/goutputstream.h:35:9`! (source);
322 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
323
324 if (!g_output_stream_write_all_finishcxx . . $ g_output_stream_write_all_finish(c05eaa1a255c2427). (stream, result, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
325 gdk_content_serializer_return_errorcxx . . $ gdk_content_serializer_return_error(f551dbf6daee8cd6). (serializer, error);
326 else
327 gdk_content_serializer_return_successcxx . . $ gdk_content_serializer_return_success(9ebddb52e2aecd59). (serializer);
328 }
329
330 static void
331 portal_readycxx . . $ portal_ready(aa1d200d824d915d). (GObjectcxx . . $ GObject# *object,
332 GAsyncResultcxx . . $ GAsyncResult# *result,
333 gpointercxx . . $ gpointer# serializer)
334 {
335 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
336 char *key;
337
338 if (!file_transfer_portal_register_files_finishcxx . . $ file_transfer_portal_register_files_finish(e37aeec61124c7a7). (result, &key, &error))
339 {
340 gdk_content_serializer_return_errorcxx . . $ gdk_content_serializer_return_error(f551dbf6daee8cd6). (serializer, error);
341 return;
342 }
343
344 g_output_stream_write_all_asynccxx . . $ g_output_stream_write_all_async(50e9e3a461521cd4). (gdk_content_serializer_get_output_streamcxx . . $ gdk_content_serializer_get_output_stream(3ab0bc34e9433566). (serializer),
345 key,
346 strlencxx . . $ strlen(751346f8406fd082). (key) + 1,
347 gdk_content_serializer_get_prioritycxx . . $ gdk_content_serializer_get_priority(7397e6e534b8eaab). (serializer),
348 gdk_content_serializer_get_cancellablecxx . . $ gdk_content_serializer_get_cancellable(1fa36edb619401c9). (serializer),
349 file_serializer_finishcxx . . $ file_serializer_finish(aa1d200d824d915d).,
350 serializer);
351 gdk_content_serializer_set_task_datacxx . . $ gdk_content_serializer_set_task_data(e0e3f4ef95ab24bc). (serializer, key, g_freecxx . . $ g_free(5d22bdacc48458e8).);
352 }
353
354 static void
355 portal_file_serializercxx . . $ portal_file_serializer(9ebddb52e2aecd59). (GdkContentSerializercxx . . $ GdkContentSerializer# *serializer)
356 {
357 GPtrArraycxx . . $ GPtrArray# *files;
358 const GValuecxx . . $ GValue# *value;
359
360 files = g_ptr_array_new_with_free_funccxx . . $ g_ptr_array_new_with_free_func(e90788d6907589f2). (g_freecxx . . $ g_free(5d22bdacc48458e8).);
361
362 value = gdk_content_serializer_get_valuecxx . . $ gdk_content_serializer_get_value(590542a31c789f1). (serializer);
363
364 if (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (value, G_TYPE_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:34:9`!))
365 {
366 GFilecxx . . $ GFile# *file;
367
368 file = g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (gdk_content_serializer_get_valuecxx . . $ gdk_content_serializer_get_value(590542a31c789f1). (serializer));
369
370 if (file && g_file_peek_pathcxx . . $ g_file_peek_path(7a86aa469ebf3be2). (file))
371 {
372 GDK_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:138:9`! (DND, "file transfer portal: Adding %s", g_file_peek_path (file));
373 g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (files, g_file_get_pathcxx . . $ g_file_get_path(bd69fa69840f32a9). (file));
374 }
375 else if (GDK_DEBUG_CHECKcxx . . $ `gdk/gdkdebugprivate.h:136:9`! (DND))
376 {
377 char *uri = g_file_get_uricxx . . $ g_file_get_uri(bd69fa69840f32a9). (file);
378 gdk_debug_messagecxx . . $ gdk_debug_message(326aeb464d16410c). ("file transfer portal: %s has no path, dropping\n", uri);
379 g_freecxx . . $ g_free(5d22bdacc48458e8). (uri);
380 }
381
382 g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (files, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
383 }
384 else if (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (value, GDK_TYPE_FILE_LISTcxx . . $ `gdk/gdkcontentformats.h:113:9`!))
385 {
386 GSListcxx . . $ GSList# *l;
387
388 for (l = g_value_get_boxedcxx . . $ g_value_get_boxed(e12dff36056c2cce). (value); l; l = l->nextcxx . . $ _GSList#next.)
389 {
390 GFilecxx . . $ GFile# *file = l->datacxx . . $ _GSList#data.;
391
392 if (file && g_file_peek_pathcxx . . $ g_file_peek_path(7a86aa469ebf3be2). (file))
393 {
394 GDK_DEBUGcxx . . $ `gdk/gdkdebugprivate.h:138:9`! (DND, "file transfer portal: Adding %s", g_file_peek_path (file));
395 g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (files, g_file_get_pathcxx . . $ g_file_get_path(bd69fa69840f32a9). (file));
396 }
397 else
398 {
399 char *uri = g_file_get_uricxx . . $ g_file_get_uri(bd69fa69840f32a9). (file);
400 gdk_debug_messagecxx . . $ gdk_debug_message(326aeb464d16410c). ("file transfer portal: %s has no path, dropping", uri);
401 g_freecxx . . $ g_free(5d22bdacc48458e8). (uri);
402 }
403 }
404
405 g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (files, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
406 }
407
408 /* this call doesn't copy the strings, so keep the array around until the registration is done */
409 file_transfer_portal_register_filescxx . . $ file_transfer_portal_register_files(26aa26fe56e7db8c). ((const char **)files->pdatacxx . . $ _GPtrArray#pdata., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, portal_readycxx . . $ portal_ready(aa1d200d824d915d)., serializer);
410 gdk_content_serializer_set_task_datacxx . . $ gdk_content_serializer_set_task_data(e0e3f4ef95ab24bc). (serializer, files, (GDestroyNotifycxx . . $ GDestroyNotify#)g_ptr_array_unrefcxx . . $ g_ptr_array_unref(ebd7774315fc8cef).);
411 }
412
413 /* deserializer */
414
415 static void
416 portal_finishcxx . . $ portal_finish(aa1d200d824d915d). (GObjectcxx . . $ GObject# *object,
417 GAsyncResultcxx . . $ GAsyncResult# *result,
418 gpointercxx . . $ gpointer# deserializer)
419 {
420 char **files = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
421 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
422 GValuecxx . . $ GValue# *value;
423
424 if (!file_transfer_portal_retrieve_files_finishcxx . . $ file_transfer_portal_retrieve_files_finish(4079627873717f84). (result, &files, &error))
425 {
426 gdk_content_deserializer_return_errorcxx . . $ gdk_content_deserializer_return_error(81438258566819b8). (deserializer, error);
427 return;
428 }
429
430 if (GDK_DEBUG_CHECKcxx . . $ `gdk/gdkdebugprivate.h:136:9`! (DND))
431 {
432 char *s = g_strjoinvcxx . . $ g_strjoinv(3bdede71480c687a). (", ", files);
433 gdk_debug_messagecxx . . $ gdk_debug_message(326aeb464d16410c). ("file transfer portal: Receiving files: %s", s);
434 g_freecxx . . $ g_free(5d22bdacc48458e8). (s);
435 }
436
437 value = gdk_content_deserializer_get_valuecxx . . $ gdk_content_deserializer_get_value(acb2aa7c9b757d66). (deserializer);
438 if (G_VALUE_HOLDScxx . . $ `<external>/17218264759549183453/gvalue.h:91:9`! (value, G_TYPE_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:34:9`!))
439 {
440 if (files[0] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
441 g_value_take_objectcxx . . $ g_value_take_object(e945b84c1e9702f). (value, g_file_new_for_pathcxx . . $ g_file_new_for_path(ba1fd5950b7d7bd5). (files[0]));
442 }
443 else
444 {
445 GSListcxx . . $ GSList# *l = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
446 gsizecxx . . $ gsize# i;
447
448 for (i = 0; files[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; i++)
449 l = g_slist_prependcxx . . $ g_slist_prepend(6eb923d8c45a5456). (l, g_file_new_for_pathcxx . . $ g_file_new_for_path(ba1fd5950b7d7bd5). (files[i]));
450 g_value_take_boxedcxx . . $ g_value_take_boxed(806599f585dac18b). (value, g_slist_reversecxx . . $ g_slist_reverse(e6171a83469a530). (l));
451 }
452 g_strfreevcxx . . $ g_strfreev(3ed91490e421178f). (files);
453
454 gdk_content_deserializer_return_successcxx . . $ gdk_content_deserializer_return_success(9c22f94ed9b01fb0). (deserializer);
455 }
456
457 static void
458 portal_file_deserializer_finishcxx . . $ portal_file_deserializer_finish(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source,
459 GAsyncResultcxx . . $ GAsyncResult# *result,
460 gpointercxx . . $ gpointer# deserializer)
461 {
462 GOutputStreamcxx . . $ GOutputStream# *stream = G_OUTPUT_STREAMcxx . . $ `<external>/12960712863927311157/goutputstream.h:35:9`! (source);
463 GErrorcxx . . $ GError# *error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
464 gssizecxx . . $ gssize# written;
465 char *key;
466
467 written = g_output_stream_splice_finishcxx . . $ g_output_stream_splice_finish(b971013a7a3f5e1). (stream, result, &error);
468 if (written < 0)
469 {
470 gdk_content_deserializer_return_errorcxx . . $ gdk_content_deserializer_return_error(81438258566819b8). (deserializer, error);
471 return;
472 }
473
474 /* write terminating NULL */
475 if (!g_output_stream_writecxx . . $ g_output_stream_write(6a212f6d19c93115). (stream, "", 1, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
476 {
477 gdk_content_deserializer_return_errorcxx . . $ gdk_content_deserializer_return_error(81438258566819b8). (deserializer, error);
478 return;
479 }
480
481 key = g_memory_output_stream_steal_datacxx . . $ g_memory_output_stream_steal_data(de1ecf9fe1ad5287). (G_MEMORY_OUTPUT_STREAMcxx . . $ `<external>/16534567971107647114/gmemoryoutputstream.h:35:9`! (stream));
482 if (key == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
483 {
484 GErrorcxx . . $ GError# *gerror = g_error_newcxx . . $ g_error_new(c11b45e4af983f9e). (G_IO_ERRORcxx . . $ `<external>/13894955190784973534/gioerror.h:42:9`!,
485 G_IO_ERROR_NOT_FOUNDcxx . . $ G_IO_ERROR_NOT_FOUND.,
486 "Could not convert data from %s to %s",
487 gdk_content_deserializer_get_mime_typecxx . . $ gdk_content_deserializer_get_mime_type(659c160e76722c5f). (deserializer),
488 g_type_namecxx . . $ g_type_name(30dde979ed96a187). (gdk_content_deserializer_get_gtypecxx . . $ gdk_content_deserializer_get_gtype(c7ece2b457200d91). (deserializer)));
489 gdk_content_deserializer_return_errorcxx . . $ gdk_content_deserializer_return_error(81438258566819b8). (deserializer, gerror);
490 return;
491 }
492
493 file_transfer_portal_retrieve_filescxx . . $ file_transfer_portal_retrieve_files(e8ca6e919792d6b4). (key, portal_finishcxx . . $ portal_finish(aa1d200d824d915d)., deserializer);
494 gdk_content_deserializer_set_task_datacxx . . $ gdk_content_deserializer_set_task_data(6aeee1c2c6d7155a). (deserializer, key, g_freecxx . . $ g_free(5d22bdacc48458e8).);
495 }
496
497 static void
498 portal_file_deserializercxx . . $ portal_file_deserializer(9c22f94ed9b01fb0). (GdkContentDeserializercxx . . $ GdkContentDeserializer# *deserializer)
499 {
500 GOutputStreamcxx . . $ GOutputStream# *output;
501
502 output = g_memory_output_stream_new_resizablecxx . . $ g_memory_output_stream_new_resizable(937a4dd9141c33c9). ();
503
504 g_output_stream_splice_asynccxx . . $ g_output_stream_splice_async(e4877396f3e433df). (output,
505 gdk_content_deserializer_get_input_streamcxx . . $ gdk_content_deserializer_get_input_stream(df5ae86d73d8455d). (deserializer),
506 G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCEcxx . . $ G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE. | G_OUTPUT_STREAM_SPLICE_CLOSE_TARGETcxx . . $ G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET.,
507 gdk_content_deserializer_get_prioritycxx . . $ gdk_content_deserializer_get_priority(d44d20d39f43eb68). (deserializer),
508 gdk_content_deserializer_get_cancellablecxx . . $ gdk_content_deserializer_get_cancellable(82ef01bbea1a3c5). (deserializer),
509 portal_file_deserializer_finishcxx . . $ portal_file_deserializer_finish(aa1d200d824d915d).,
510 deserializer);
511 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (output);
512 }
513
514 static void
515 connection_closedcxx . . $ connection_closed(ece50ca6f69ab9d0). (GDBusConnectioncxx . . $ GDBusConnection# *connection,
516 gbooleancxx . . $ gboolean# remote_peer_vanished,
517 GErrorcxx . . $ GError# *error)
518 {
519 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&file_transfer_proxy);
520 }
521
522 static void
523 finish_registrationcxx . . $ finish_registration(49f6e7a06ebc5aa8). (void)
524 {
525 gdk_content_register_serializercxx . . $ gdk_content_register_serializer(608d216c30a62466). (G_TYPE_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:34:9`!,
526 "application/vnd.portal.filetransfer",
527 portal_file_serializercxx . . $ portal_file_serializer(9ebddb52e2aecd59).,
528 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
529 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
530
531 gdk_content_register_serializercxx . . $ gdk_content_register_serializer(608d216c30a62466). (GDK_TYPE_FILE_LISTcxx . . $ `gdk/gdkcontentformats.h:113:9`!,
532 "application/vnd.portal.filetransfer",
533 portal_file_serializercxx . . $ portal_file_serializer(9ebddb52e2aecd59).,
534 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
535 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
536
537 gdk_content_register_deserializercxx . . $ gdk_content_register_deserializer(63cd696220fad2af). ("application/vnd.portal.filetransfer",
538 GDK_TYPE_FILE_LISTcxx . . $ `gdk/gdkcontentformats.h:113:9`!,
539 portal_file_deserializercxx . . $ portal_file_deserializer(9c22f94ed9b01fb0).,
540 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
541 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
542
543 gdk_content_register_deserializercxx . . $ gdk_content_register_deserializer(63cd696220fad2af). ("application/vnd.portal.filetransfer",
544 G_TYPE_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:34:9`!,
545 portal_file_deserializercxx . . $ portal_file_deserializer(9c22f94ed9b01fb0).,
546 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
547 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
548
549 /* FIXME: I missed up and used the wrong mime type here when
550 * I implemented my own protocol. Keep these around for a while
551 * so we can interoperate with existing flatpaks using GTK 4.6
552 */
553 gdk_content_register_serializercxx . . $ gdk_content_register_serializer(608d216c30a62466). (G_TYPE_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:34:9`!,
554 "application/vnd.portal.files",
555 portal_file_serializercxx . . $ portal_file_serializer(9ebddb52e2aecd59).,
556 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
557 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
558
559 gdk_content_register_serializercxx . . $ gdk_content_register_serializer(608d216c30a62466). (GDK_TYPE_FILE_LISTcxx . . $ `gdk/gdkcontentformats.h:113:9`!,
560 "application/vnd.portal.files",
561 portal_file_serializercxx . . $ portal_file_serializer(9ebddb52e2aecd59).,
562 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
563 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
564
565 gdk_content_register_deserializercxx . . $ gdk_content_register_deserializer(63cd696220fad2af). ("application/vnd.portal.files",
566 GDK_TYPE_FILE_LISTcxx . . $ `gdk/gdkcontentformats.h:113:9`!,
567 portal_file_deserializercxx . . $ portal_file_deserializer(9c22f94ed9b01fb0).,
568 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
569 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
570
571 gdk_content_register_deserializercxx . . $ gdk_content_register_deserializer(63cd696220fad2af). ("application/vnd.portal.files",
572 G_TYPE_FILEcxx . . $ `<external>/13962853800498659056/gfile.h:34:9`!,
573 portal_file_deserializercxx . . $ portal_file_deserializer(9c22f94ed9b01fb0).,
574 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
575 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
576
577 /* Free the singleton when the connection closes, important for test */
578 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (g_dbus_proxy_get_connection (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (file_transfer_proxy)),
579 "closed", G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (connection_closed), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
580 }
581
582 static gbooleancxx . . $ gboolean#
583 proxy_has_ownercxx . . $ proxy_has_owner(dcdea12b881ddaab). (GDBusProxycxx . . $ GDBusProxy# *proxy)
584 {
585 char *owner;
586
587 owner = g_dbus_proxy_get_name_ownercxx . . $ g_dbus_proxy_get_name_owner(fc473134a76e7464). (proxy);
588 if (owner)
589 {
590 g_freecxx . . $ g_free(5d22bdacc48458e8). (owner);
591 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
592 }
593
594 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
595 }
596
597 void
598 file_transfer_portal_registercxx . . $ file_transfer_portal_register(49f6e7a06ebc5aa8). (void)
599 {
600 static gbooleancxx . . $ gboolean# called;
601
602 if (!called)
603 {
604 called = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
605
606 /* Cheating a bit, since the document portal is special */
607 if (gdk_display_should_use_portalcxx . . $ gdk_display_should_use_portal(f66be9ad08828277). (gdk_display_get_defaultcxx . . $ gdk_display_get_default(b31d93ef98fc5572). (), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 0))
608 file_transfer_proxycxx . . $ file_transfer_proxy. = g_dbus_proxy_new_for_bus_synccxx . . $ g_dbus_proxy_new_for_bus_sync(1e76e403b41b5220). (G_BUS_TYPE_SESSIONcxx . . $ G_BUS_TYPE_SESSION.,
609 G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIEScxx . . $ G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES.
610 | G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALScxx . . $ G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS.
611 | G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_STARTcxx . . $ G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START.,
612 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
613 "org.freedesktop.portal.Documents",
614 "/org/freedesktop/portal/documents",
615 "org.freedesktop.portal.FileTransfer",
616 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
617 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
618
619 if (file_transfer_proxycxx . . $ file_transfer_proxy. && !proxy_has_ownercxx . . $ proxy_has_owner(dcdea12b881ddaab). (file_transfer_proxycxx . . $ file_transfer_proxy.))
620 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&file_transfer_proxy);
621
622 if (file_transfer_proxycxx . . $ file_transfer_proxy.)
623 finish_registrationcxx . . $ finish_registration(49f6e7a06ebc5aa8). ();
624 }
625 }
626
627
628 #endif /* G_OS_UNIX */