Debian Codegraph @

src/remote-desktop.c

raw symbols SCIP
1 /*
2 * Copyright © 2017-2018 Red Hat, Inc
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #include "config.h"cxx . . $ `<file>/build/config.h`/
22
23 #include "remote-desktop.h"cxx . . $ `<file>/src/remote-desktop.h`/
24
25 #include <stdint.h>
26
27 #include <gio/gunixfdlist.h>
28
29 #include "pipewire.h"cxx . . $ `<file>/src/pipewire.h`/
30 #include "screen-cast.h"cxx . . $ `<file>/src/screen-cast.h`/
31 #include "xdp-context.h"cxx . . $ `<file>/src/xdp-context.h`/
32 #include "xdp-dbus.h"cxx . . $ `<file>/build/src/xdp-dbus.h`/
33 #include "xdp-impl-dbus.h"cxx . . $ `<file>/build/src/xdp-impl-dbus.h`/
34 #include "xdp-portal-config.h"cxx . . $ `<file>/src/xdp-portal-config.h`/
35 #include "xdp-request.h"cxx . . $ `<file>/src/xdp-request.h`/
36 #include "xdp-session-persistence.h"cxx . . $ `<file>/src/xdp-session-persistence.h`/
37 #include "xdp-session.h"cxx . . $ `<file>/src/xdp-session.h`/
38 #include "xdp-utils.h"cxx . . $ `<file>/src/xdp-utils.h`/
39
40 typedef struct _RemoteDesktopcxx . . $ _RemoteDesktop# RemoteDesktopcxx . . $ RemoteDesktop#;
41 typedef struct _RemoteDesktopClasscxx . . $ _RemoteDesktopClass# RemoteDesktopClasscxx . . $ RemoteDesktopClass#;
42
43 struct _RemoteDesktopcxx . . $ _RemoteDesktop#
44 {
45 XdpDbusRemoteDesktopSkeletoncxx . . $ XdpDbusRemoteDesktopSkeleton# parent_instancecxx . . $ _RemoteDesktop#parent_instance.;
46
47 XdpContextcxx . . $ XdpContext# *contextcxx . . $ _RemoteDesktop#context.;
48 XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *implcxx . . $ _RemoteDesktop#impl.;
49 };
50
51 struct _RemoteDesktopClasscxx . . $ _RemoteDesktopClass#
52 {
53 XdpDbusRemoteDesktopSkeletonClasscxx . . $ XdpDbusRemoteDesktopSkeletonClass# parent_classcxx . . $ _RemoteDesktopClass#parent_class.;
54 };
55
56 GTypecxx . . $ GType# remote_desktop_get_typecxx . . $ remote_desktop_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
57 static void remote_desktop_iface_initcxx . . $ remote_desktop_iface_init(c23daa446e6f034e). (XdpDbusRemoteDesktopIfacecxx . . $ XdpDbusRemoteDesktopIface# *iface);
58
59 static GQuarkcxx . . $ GQuark# quark_request_sessioncxx . . $ quark_request_session.;
60
61 G_DEFINE_TYPE_WITH_CODEcxx . . $ `<external>/9567554376676449156/gtype.h:1850:9`! (RemoteDesktop, remote_desktop,
62 XDP_DBUS_TYPE_REMOTE_DESKTOP_SKELETONcxx . . $ `build/src/xdp-dbus.h:6795:9`!,
63 G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (XDP_DBUS_TYPE_REMOTE_DESKTOPcxx . . $ `build/src/xdp-dbus.h:6169:9`!,
64 remote_desktop_iface_init));
65
66 G_DEFINE_AUTOPTR_CLEANUP_FUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:1414:9`! (RemoteDesktop, g_object_unref)
67
68 typedef enum _RemoteDesktopSessionStatecxx . . $ _RemoteDesktopSessionState#
69 {
70 REMOTE_DESKTOP_SESSION_STATE_INITcxx . . $ REMOTE_DESKTOP_SESSION_STATE_INIT.,
71 REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.,
72 REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.
73 } RemoteDesktopSessionStatecxx . . $ RemoteDesktopSessionState#;
74
75 typedef enum _DeviceTypecxx . . $ _DeviceType#
76 {
77 DEVICE_TYPE_NONEcxx . . $ DEVICE_TYPE_NONE. = 0,
78 DEVICE_TYPE_KEYBOARDcxx . . $ DEVICE_TYPE_KEYBOARD. = 1 << 0,
79 DEVICE_TYPE_POINTERcxx . . $ DEVICE_TYPE_POINTER. = 1 << 1,
80 DEVICE_TYPE_TOUCHSCREENcxx . . $ DEVICE_TYPE_TOUCHSCREEN. = 1 << 2,
81 } DeviceTypecxx . . $ DeviceType#;
82
83 typedef struct _RemoteDesktopSessioncxx . . $ _RemoteDesktopSession#
84 {
85 XdpSessioncxx . . $ XdpSession# parentcxx . . $ _RemoteDesktopSession#parent.;
86
87 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktopcxx . . $ _RemoteDesktopSession#remote_desktop.;
88
89 RemoteDesktopSessionStatecxx . . $ RemoteDesktopSessionState# statecxx . . $ _RemoteDesktopSession#state.;
90
91 DeviceTypecxx . . $ DeviceType# shared_devicescxx . . $ _RemoteDesktopSession#shared_devices.;
92
93 GListcxx . . $ GList# *streamscxx . . $ _RemoteDesktopSession#streams.;
94
95 gbooleancxx . . $ gboolean# clipboard_requestedcxx . . $ _RemoteDesktopSession#clipboard_requested.;
96
97 gbooleancxx . . $ gboolean# devices_selectedcxx . . $ _RemoteDesktopSession#devices_selected.;
98
99 gbooleancxx . . $ gboolean# sources_selectedcxx . . $ _RemoteDesktopSession#sources_selected.;
100
101 gbooleancxx . . $ gboolean# clipboard_enabledcxx . . $ _RemoteDesktopSession#clipboard_enabled.;
102
103 gbooleancxx . . $ gboolean# uses_eiscxx . . $ _RemoteDesktopSession#uses_eis.;
104
105 char *restore_tokencxx . . $ _RemoteDesktopSession#restore_token.;
106 XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode# persist_modecxx . . $ _RemoteDesktopSession#persist_mode.;
107 GVariantcxx . . $ GVariant# *restore_datacxx . . $ _RemoteDesktopSession#restore_data.;
108 } RemoteDesktopSessioncxx . . $ RemoteDesktopSession#;
109
110 typedef struct _RemoteDesktopSessionClasscxx . . $ _RemoteDesktopSessionClass#
111 {
112 XdpSessionClasscxx . . $ XdpSessionClass# parent_classcxx . . $ _RemoteDesktopSessionClass#parent_class.;
113 } RemoteDesktopSessionClasscxx . . $ RemoteDesktopSessionClass#;
114
115 G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`! (RemoteDesktopSession, remote_desktop_session, xdp_session_get_type ())
116
117 G_DEFINE_AUTOPTR_CLEANUP_FUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:1414:9`! (RemoteDesktopSession, g_object_unref);
118
119 gbooleancxx . . $ gboolean#
120 remote_desktop_session_can_select_sourcescxx . . $ remote_desktop_session_can_select_sources(dd48ac39560d1f95). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
121 {
122 if (session->sources_selectedcxx . . $ _RemoteDesktopSession#sources_selected.)
123 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
124
125 switch (session->statecxx . . $ _RemoteDesktopSession#state.)
126 {
127 case REMOTE_DESKTOP_SESSION_STATE_INITcxx . . $ REMOTE_DESKTOP_SESSION_STATE_INIT.:
128 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
129 case REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.:
130 case REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.:
131 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
132 }
133
134 g_assert_not_reachedcxx . . $ `<external>/15287032793271088244/gtestutils.h:274:9`! ();
135 }
136
137 gbooleancxx . . $ gboolean#
138 remote_desktop_session_can_select_devicescxx . . $ remote_desktop_session_can_select_devices(dd48ac39560d1f95). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
139 {
140 if (session->devices_selectedcxx . . $ _RemoteDesktopSession#devices_selected.)
141 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
142
143 switch (session->statecxx . . $ _RemoteDesktopSession#state.)
144 {
145 case REMOTE_DESKTOP_SESSION_STATE_INITcxx . . $ REMOTE_DESKTOP_SESSION_STATE_INIT.:
146 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
147 case REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.:
148 case REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.:
149 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
150 }
151
152 g_assert_not_reachedcxx . . $ `<external>/15287032793271088244/gtestutils.h:274:9`! ();
153 }
154
155 gbooleancxx . . $ gboolean#
156 remote_desktop_session_can_request_clipboardcxx . . $ remote_desktop_session_can_request_clipboard(dd48ac39560d1f95). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
157 {
158 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = session->remote_desktopcxx . . $ _RemoteDesktopSession#remote_desktop.;
159
160 if (session->clipboard_requestedcxx . . $ _RemoteDesktopSession#clipboard_requested.)
161 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
162
163 if (xdp_dbus_impl_remote_desktop_get_versioncxx . . $ xdp_dbus_impl_remote_desktop_get_version(23edd3b5bef39f87). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.) < 2)
164 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
165
166 switch (session->statecxx . . $ _RemoteDesktopSession#state.)
167 {
168 case REMOTE_DESKTOP_SESSION_STATE_INITcxx . . $ REMOTE_DESKTOP_SESSION_STATE_INIT.:
169 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
170 case REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.:
171 case REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.:
172 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
173 }
174
175 g_assert_not_reachedcxx . . $ `<external>/15287032793271088244/gtestutils.h:274:9`! ();
176 }
177
178 GListcxx . . $ GList# *
179 remote_desktop_session_get_streamscxx . . $ remote_desktop_session_get_streams(ea983a36440a98d3). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
180 {
181 return session->streamscxx . . $ _RemoteDesktopSession#streams.;
182 }
183
184 void
185 remote_desktop_session_sources_selectedcxx . . $ remote_desktop_session_sources_selected(514f1520aeba67af). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
186 {
187 session->sources_selectedcxx . . $ _RemoteDesktopSession#sources_selected. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
188 }
189
190 gbooleancxx . . $ gboolean#
191 remote_desktop_session_is_clipboard_enabledcxx . . $ remote_desktop_session_is_clipboard_enabled(dd48ac39560d1f95). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
192 {
193 return session->clipboard_enabledcxx . . $ _RemoteDesktopSession#clipboard_enabled.;
194 }
195
196 gbooleancxx . . $ gboolean#
197 remote_desktop_session_can_access_clipboardcxx . . $ remote_desktop_session_can_access_clipboard(dd48ac39560d1f95). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
198 {
199 return session->clipboard_enabledcxx . . $ _RemoteDesktopSession#clipboard_enabled.;
200 }
201
202 void
203 remote_desktop_session_clipboard_requestedcxx . . $ remote_desktop_session_clipboard_requested(514f1520aeba67af). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *session)
204 {
205 session->clipboard_requestedcxx . . $ _RemoteDesktopSession#clipboard_requested. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
206 }
207
208 static void
209 remote_desktop_session_closecxx . . $ remote_desktop_session_close(ac695378ab375fe8). (XdpSessioncxx . . $ XdpSession# *session)
210 {
211 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
212
213 remote_desktop_session->statecxx . . $ _RemoteDesktopSession#state. = REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.;
214
215 g_debugcxx . . $ `<external>/5169755362661750954/gmessages.h:371:9`! ("remote desktop session owned by '%s' closed", session->sender);
216 }
217
218 static void
219 remote_desktop_session_finalizecxx . . $ remote_desktop_session_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
220 {
221 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (object);
222
223 g_list_free_fullcxx . . $ g_list_free_full(5ba5b0738c7ed753). (remote_desktop_session->streamscxx . . $ _RemoteDesktopSession#streams.,
224 (GDestroyNotifycxx . . $ GDestroyNotify#)screen_cast_stream_freecxx . . $ screen_cast_stream_free(6f144c91b7a728b0).);
225
226 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&remote_desktop_session->remote_desktop);
227
228 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (remote_desktop_session_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object);
229 }
230
231 static void
232 remote_desktop_session_initcxx . . $ remote_desktop_session_init(514f1520aeba67af). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session)
233 {
234 }
235
236 static void
237 remote_desktop_session_class_initcxx . . $ remote_desktop_session_class_init(aba1bf2be7336548). (RemoteDesktopSessionClasscxx . . $ RemoteDesktopSessionClass# *klass)
238 {
239 GObjectClasscxx . . $ GObjectClass# *object_class;
240 XdpSessionClasscxx . . $ XdpSessionClass# *session_class;
241
242 object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
243 object_class->finalizecxx . . $ _GObjectClass#finalize. = remote_desktop_session_finalizecxx . . $ remote_desktop_session_finalize(6087475fa43034d3).;
244
245 session_class = (XdpSessionClasscxx . . $ XdpSessionClass# *)klass;
246 session_class->closecxx . . $ _XdpSessionClass#close. = remote_desktop_session_closecxx . . $ remote_desktop_session_close(ac695378ab375fe8).;
247
248 quark_request_sessioncxx . . $ quark_request_session. =
249 g_quark_from_static_stringcxx . . $ g_quark_from_static_string(c61c63047ce273de). ("-xdp-request-remote-desktop-session");
250 }
251
252 static RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *
253 remote_desktop_session_newcxx . . $ remote_desktop_session_new(e3671f15be7a2ff2). (RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop,
254 GVariantcxx . . $ GVariant# *options,
255 XdpRequestcxx . . $ XdpRequest# *request,
256 GErrorcxx . . $ GError# **error)
257 {
258 XdpSessioncxx . . $ XdpSession# *session;
259 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *rd_session;
260 GDBusInterfaceSkeletoncxx . . $ GDBusInterfaceSkeleton# *interface_skeleton =
261 G_DBUS_INTERFACE_SKELETONcxx . . $ `<external>/1991948168568871819/gdbusinterfaceskeleton.h:32:9`! (request);
262 const char *session_token;
263 GDBusConnectioncxx . . $ GDBusConnection# *connection =
264 g_dbus_interface_skeleton_get_connectioncxx . . $ g_dbus_interface_skeleton_get_connection(b3e1a9aea5de7a42). (interface_skeleton);
265 GDBusConnectioncxx . . $ GDBusConnection# *impl_connection =
266 g_dbus_proxy_get_connectioncxx . . $ g_dbus_proxy_get_connection(fd0690ce15ac5ecf). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl));
267 const char *impl_dbus_name =
268 g_dbus_proxy_get_namecxx . . $ g_dbus_proxy_get_name(c2c3b8a4da378b0d). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl));
269
270 session_token = lookup_session_tokencxx . . $ lookup_session_token(d2704f6d4d26effc). (options);
271 session = g_initable_newcxx . . $ g_initable_new(a8cb3f520296c554). (remote_desktop_session_get_typecxx . . $ remote_desktop_session_get_type(f708dce9a8856c70). (), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, error,
272 "context", remote_desktop->contextcxx . . $ _RemoteDesktop#context.,
273 "sender", request->sendercxx . . $ _XdpRequest#sender.,
274 "app-id", xdp_app_info_get_idcxx . . $ xdp_app_info_get_id(b9a768ac644c9329). (request->app_infocxx . . $ _XdpRequest#app_info.),
275 "token", session_token,
276 "connection", connection,
277 "impl-connection", impl_connection,
278 "impl-dbus-name", impl_dbus_name,
279 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
280 if (session == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
281 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
282
283 rd_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
284 rd_session->remote_desktopcxx . . $ _RemoteDesktopSession#remote_desktop. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (remote_desktop);
285
286 g_debugcxx . . $ `<external>/5169755362661750954/gmessages.h:371:9`! ("remote desktop session owned by '%s' created", session->sender);
287
288 return rd_session;
289 }
290
291 static void
292 create_session_donecxx . . $ create_session_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source_object,
293 GAsyncResultcxx . . $ GAsyncResult# *res,
294 gpointercxx . . $ gpointer# data)
295 {
296 XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *impl = (XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *) source_object;
297 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(XdpRequest) request = data;
298 XdpSessioncxx . . $ XdpSession# *session;
299 guintcxx . . $ guint# response = 2;
300 gbooleancxx . . $ gboolean# should_close_session;
301 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) results_builder =
302 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
303 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
304
305 REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:56:9`! (request);
306
307 session = g_object_get_qdatacxx . . $ g_object_get_qdata(b02fb2b4fc775a4). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request), quark_request_sessioncxx . . $ quark_request_session.);
308
309 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (session));
310 g_object_set_qdatacxx . . $ g_object_set_qdata(d7e2e719dfad0cc9). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request), quark_request_sessioncxx . . $ quark_request_session., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
311
312 if (!xdp_dbus_impl_remote_desktop_call_create_session_finishcxx . . $ xdp_dbus_impl_remote_desktop_call_create_session_finish(32392f5f43d7f7f3). (impl,
313 &response,
314 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
315 res,
316 &error))
317 {
318 g_dbus_error_strip_remote_errorcxx . . $ g_dbus_error_strip_remote_error(425e103a815b829). (error);
319 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:365:9`! ("A backend call failed: %s", error->message);
320 should_close_session = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
321 goto out;
322 }
323 if (request->exportedcxx . . $ _XdpRequest#exported. && response == 0)
324 {
325 if (!xdp_session_exportcxx . . $ xdp_session_export(3c2cf3f1073dc4c7). (session, &error))
326 {
327 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:365:9`! ("Failed to export session: %s", error->message);
328 response = 2;
329 should_close_session = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
330 goto out;
331 }
332
333 should_close_session = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
334 xdp_session_registercxx . . $ xdp_session_register(ac695378ab375fe8). (session);
335 }
336 else
337 {
338 should_close_session = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
339 }
340
341 g_variant_builder_addcxx . . $ g_variant_builder_add(a422658e2ec2035a). (&results_builder, "{sv}",
342 "session_handle", g_variant_new_stringcxx . . $ g_variant_new_string(8d35775da1697fc2). (session->idcxx . . $ _XdpSession#id.));
343
344 out:
345 if (request->exportedcxx . . $ _XdpRequest#exported.)
346 {
347 xdp_dbus_request_emit_responsecxx . . $ xdp_dbus_request_emit_response(6deab25eec490adc). (XDP_DBUS_REQUESTcxx . . $ `build/src/xdp-dbus.h:6831:9`! (request),
348 response,
349 g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&results_builder));
350 xdp_request_unexportcxx . . $ xdp_request_unexport(8bf1d2bcdc4be36d). (request);
351 }
352
353 if (should_close_session)
354 xdp_session_closecxx . . $ xdp_session_close(e4dd02f38fc14a2). (session, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!);
355 }
356
357 static gbooleancxx . . $ gboolean#
358 handle_create_sessioncxx . . $ handle_create_session(f091853939ee14e0). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
359 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
360 GVariantcxx . . $ GVariant# *arg_options)
361 {
362 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
363 XdpRequestcxx . . $ XdpRequest# *request = xdp_request_from_invocationcxx . . $ xdp_request_from_invocation(9583a51810815010). (invocation);
364 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
365 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(XdpDbusImplRequest) impl_request = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
366 XdpSessioncxx . . $ XdpSession# *session;
367 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
368 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
369 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
370
371 REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:56:9`! (request);
372
373 impl_request = xdp_dbus_impl_request_proxy_new_synccxx . . $ xdp_dbus_impl_request_proxy_new_sync(b36c38a372f8f089). (
374 g_dbus_proxy_get_connectioncxx . . $ g_dbus_proxy_get_connection(fd0690ce15ac5ecf). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl)),
375 G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIEScxx . . $ G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES.,
376 g_dbus_proxy_get_namecxx . . $ g_dbus_proxy_get_name(c2c3b8a4da378b0d). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl)),
377 request->idcxx . . $ _XdpRequest#id.,
378 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error);
379
380 if (!impl_request)
381 {
382 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
383 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
384 }
385
386 xdp_request_set_impl_requestcxx . . $ xdp_request_set_impl_request(18bd0ab3b325ada4). (request, impl_request);
387 xdp_request_exportcxx . . $ xdp_request_export(49d11f351a243e17). (request, g_dbus_method_invocation_get_connectioncxx . . $ g_dbus_method_invocation_get_connection(8c6afd006dd99032). (invocation));
388
389 session = XDP_SESSIONcxx . . $ XDP_SESSION(a424cc90118498e6). (remote_desktop_session_newcxx . . $ remote_desktop_session_new(e3671f15be7a2ff2). (remote_desktop, arg_options, request, &error));
390 if (!session)
391 {
392 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
393 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
394 }
395
396 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
397
398 g_object_set_qdata_fullcxx . . $ g_object_set_qdata_full(65a765778c030710). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request),
399 quark_request_sessioncxx . . $ quark_request_session.,
400 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (session),
401 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).);
402
403 xdp_dbus_impl_remote_desktop_call_create_sessioncxx . . $ xdp_dbus_impl_remote_desktop_call_create_session(5f8c062d44aa792e). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
404 request->idcxx . . $ _XdpRequest#id.,
405 session->idcxx . . $ _XdpSession#id.,
406 xdp_app_info_get_idcxx . . $ xdp_app_info_get_id(b9a768ac644c9329). (request->app_infocxx . . $ _XdpRequest#app_info.),
407 options,
408 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
409 create_session_donecxx . . $ create_session_done(aa1d200d824d915d).,
410 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (request));
411
412 xdp_dbus_remote_desktop_complete_create_sessioncxx . . $ xdp_dbus_remote_desktop_complete_create_session(4c5998b2d9b7709b). (object, invocation, request->idcxx . . $ _XdpRequest#id.);
413
414 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
415 }
416
417 static void
418 select_devices_donecxx . . $ select_devices_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source_object,
419 GAsyncResultcxx . . $ GAsyncResult# *res,
420 gpointercxx . . $ gpointer# data)
421 {
422 XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *impl = (XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *) source_object;
423 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(XdpRequest) request = data;
424 XdpSessioncxx . . $ XdpSession# *session;
425 guintcxx . . $ guint# response = 2;
426 gbooleancxx . . $ gboolean# should_close_session;
427 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
428 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) results = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
429
430 REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:56:9`! (request);
431
432 session = g_object_get_qdatacxx . . $ g_object_get_qdata(b02fb2b4fc775a4). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request), quark_request_sessioncxx . . $ quark_request_session.);
433 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (session));
434 g_object_set_qdatacxx . . $ g_object_set_qdata(d7e2e719dfad0cc9). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request), quark_request_sessioncxx . . $ quark_request_session., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
435
436 if (!xdp_dbus_impl_remote_desktop_call_select_devices_finishcxx . . $ xdp_dbus_impl_remote_desktop_call_select_devices_finish(32392f5f43d7f7f3). (impl,
437 &response,
438 &results,
439 res,
440 &error))
441 {
442 g_dbus_error_strip_remote_errorcxx . . $ g_dbus_error_strip_remote_error(425e103a815b829). (error);
443 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:365:9`! ("A backend call failed: %s", error->message);
444 g_clear_errorcxx . . $ g_clear_error(19f343512d040fc2). (&error);
445 }
446
447 should_close_session = !request->exportedcxx . . $ _XdpRequest#exported. || response != 0;
448
449 if (request->exportedcxx . . $ _XdpRequest#exported.)
450 {
451 if (!results)
452 {
453 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) results_builder =
454 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
455
456 results = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&results_builder));
457 }
458
459 xdp_dbus_request_emit_responsecxx . . $ xdp_dbus_request_emit_response(6deab25eec490adc). (XDP_DBUS_REQUESTcxx . . $ `build/src/xdp-dbus.h:6831:9`! (request),
460 response, results);
461 xdp_request_unexportcxx . . $ xdp_request_unexport(8bf1d2bcdc4be36d). (request);
462 }
463
464 if (should_close_session)
465 {
466 xdp_session_closecxx . . $ xdp_session_close(e4dd02f38fc14a2). (session, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
467 }
468 else if (!session->closedcxx . . $ _XdpSession#closed.)
469 {
470 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session =
471 REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
472
473 remote_desktop_session->devices_selectedcxx . . $ _RemoteDesktopSession#devices_selected. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
474 }
475 }
476
477 static gbooleancxx . . $ gboolean#
478 validate_device_typescxx . . $ validate_device_types(c4684b9d3da33c87). (const char *key,
479 GVariantcxx . . $ GVariant# *value,
480 GVariantcxx . . $ GVariant# *options,
481 gpointercxx . . $ gpointer# user_data,
482 GErrorcxx . . $ GError# **error)
483 {
484 guint32cxx . . $ guint32# types = g_variant_get_uint32cxx . . $ g_variant_get_uint32(59fb6aaaf011986f). (value);
485
486 if ((types & ~(1 | 2 | 4)) != 0)
487 {
488 g_set_errorcxx . . $ g_set_error(ca0c191bc68fc328). (error, XDG_DESKTOP_PORTAL_ERRORcxx . . $ `src/xdp-utils.h:115:9`!, XDG_DESKTOP_PORTAL_ERROR_INVALID_ARGUMENTcxx . . $ XDG_DESKTOP_PORTAL_ERROR_INVALID_ARGUMENT.,
489 "Unsupported device type: %x", types & ~(1 | 2 | 4));
490 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
491 }
492
493 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
494 }
495
496 static gbooleancxx . . $ gboolean#
497 validate_restore_tokencxx . . $ validate_restore_token(c4684b9d3da33c87). (const char *key,
498 GVariantcxx . . $ GVariant# *value,
499 GVariantcxx . . $ GVariant# *options,
500 gpointercxx . . $ gpointer# user_data,
501 GErrorcxx . . $ GError# **error)
502 {
503 const char *restore_token = g_variant_get_stringcxx . . $ g_variant_get_string(5d5cac9792ea78b8). (value, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
504 return xdp_session_persistence_validate_restore_tokencxx . . $ xdp_session_persistence_validate_restore_token(5dde6684fab02cd7). (restore_token, error);
505 }
506
507 static gbooleancxx . . $ gboolean#
508 validate_persist_modecxx . . $ validate_persist_mode(c4684b9d3da33c87). (const char *key,
509 GVariantcxx . . $ GVariant# *value,
510 GVariantcxx . . $ GVariant# *options,
511 gpointercxx . . $ gpointer# user_data,
512 GErrorcxx . . $ GError# **error)
513 {
514 return xdp_session_persistence_validate_persist_modecxx . . $ xdp_session_persistence_validate_persist_mode(4307366c3e94ee1c). (g_variant_get_uint32cxx . . $ g_variant_get_uint32(59fb6aaaf011986f). (value),
515 error);
516 }
517
518 static XdpOptionKeycxx . . $ XdpOptionKey# remote_desktop_select_devices_optionscxx . . $ remote_desktop_select_devices_options.[] = {
519 { "types", G_VARIANT_TYPE_UINT32cxx . . $ `<external>/14064154155447831270/gvarianttype.h:81:9`!, validate_device_typescxx . . $ validate_device_types(c4684b9d3da33c87). },
520 { "restore_token", G_VARIANT_TYPE_STRINGcxx . . $ `<external>/14064154155447831270/gvarianttype.h:122:9`!, validate_restore_tokencxx . . $ validate_restore_token(c4684b9d3da33c87). },
521 { "persist_mode", G_VARIANT_TYPE_UINT32cxx . . $ `<external>/14064154155447831270/gvarianttype.h:81:9`!, validate_persist_modecxx . . $ validate_persist_mode(c4684b9d3da33c87). },
522 };
523
524 static void
525 replace_remote_desktop_restore_token_with_datacxx . . $ replace_remote_desktop_restore_token_with_data(721b0e9a59054c76). (XdpSessioncxx . . $ XdpSession# *session,
526 GVariantcxx . . $ GVariant# **in_out_options,
527 GErrorcxx . . $ GError# **error)
528 {
529 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
530 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
531 XdpSessionPersistenceModecxx . . $ XdpSessionPersistenceMode# persist_mode;
532
533 options = *in_out_options;
534
535 if (!g_variant_lookupcxx . . $ g_variant_lookup(7f27c6838ade8909). (options, "persist_mode", "u", &persist_mode))
536 persist_mode = XDP_SESSION_PERSISTENCE_MODE_NONEcxx . . $ XDP_SESSION_PERSISTENCE_MODE_NONE.;
537
538 remote_desktop_session->persist_modecxx . . $ _RemoteDesktopSession#persist_mode. = persist_mode;
539 xdp_session_persistence_replace_restore_token_with_datacxx . . $ xdp_session_persistence_replace_restore_token_with_data(6fd49f6574b5027b). (session,
540 REMOTE_DESKTOP_PERMISSION_TABLEcxx . . $ `src/xdp-types.h:121:9`!,
541 in_out_options,
542 &remote_desktop_session->restore_tokencxx . . $ _RemoteDesktopSession#restore_token.);
543 }
544
545 static gbooleancxx . . $ gboolean#
546 handle_select_devicescxx . . $ handle_select_devices(d52e8b4b0076d2e9). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
547 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
548 const char *arg_session_handle,
549 GVariantcxx . . $ GVariant# *arg_options)
550 {
551 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
552 XdpRequestcxx . . $ XdpRequest# *request = xdp_request_from_invocationcxx . . $ xdp_request_from_invocation(9583a51810815010). (invocation);
553 XdpSessioncxx . . $ XdpSession# *session;
554 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session;
555 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
556 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(XdpDbusImplRequest) impl_request = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
557 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
558 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
559 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
560
561 REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:56:9`! (request);
562
563 session = xdp_session_from_requestcxx . . $ xdp_session_from_request(b20d0b7552200bd). (arg_session_handle, request);
564 if (!session)
565 {
566 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
567 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
568 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
569 "Invalid session");
570 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
571 }
572
573 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
574
575 remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
576
577 if (!remote_desktop_session_can_select_devicescxx . . $ remote_desktop_session_can_select_devices(dd48ac39560d1f95). (remote_desktop_session))
578 {
579 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
580 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
581 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
582 "Invalid state");
583 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
584 }
585
586 impl_request = xdp_dbus_impl_request_proxy_new_synccxx . . $ xdp_dbus_impl_request_proxy_new_sync(b36c38a372f8f089). (
587 g_dbus_proxy_get_connectioncxx . . $ g_dbus_proxy_get_connection(fd0690ce15ac5ecf). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl)),
588 G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIEScxx . . $ G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES.,
589 g_dbus_proxy_get_namecxx . . $ g_dbus_proxy_get_name(c2c3b8a4da378b0d). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl)),
590 request->idcxx . . $ _XdpRequest#id.,
591 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error);
592
593 if (!impl_request)
594 {
595 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
596 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
597 }
598
599 xdp_request_set_impl_requestcxx . . $ xdp_request_set_impl_request(18bd0ab3b325ada4). (request, impl_request);
600 xdp_request_exportcxx . . $ xdp_request_export(49d11f351a243e17). (request, g_dbus_method_invocation_get_connectioncxx . . $ g_dbus_method_invocation_get_connection(8c6afd006dd99032). (invocation));
601
602 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
603 remote_desktop_select_devices_optionscxx . . $ remote_desktop_select_devices_options.,
604 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_select_devices_options),
605 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
606 {
607 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
608 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
609 }
610
611 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
612
613 /* If 'restore_token' is passed, lookup the corresponding data in the
614 * permission store and / or the GHashTable with transient permissions.
615 * Portal implementations do not have access to the restore token.
616 */
617 replace_remote_desktop_restore_token_with_datacxx . . $ replace_remote_desktop_restore_token_with_data(721b0e9a59054c76). (session, &options, &error);
618
619 g_object_set_qdata_fullcxx . . $ g_object_set_qdata_full(65a765778c030710). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request),
620 quark_request_sessioncxx . . $ quark_request_session.,
621 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (session),
622 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).);
623
624 xdp_dbus_impl_remote_desktop_call_select_devicescxx . . $ xdp_dbus_impl_remote_desktop_call_select_devices(5f8c062d44aa792e). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
625 request->idcxx . . $ _XdpRequest#id.,
626 arg_session_handle,
627 xdp_app_info_get_idcxx . . $ xdp_app_info_get_id(b9a768ac644c9329). (request->app_infocxx . . $ _XdpRequest#app_info.),
628 options,
629 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
630 select_devices_donecxx . . $ select_devices_done(aa1d200d824d915d).,
631 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (request));
632
633 xdp_dbus_remote_desktop_complete_select_devicescxx . . $ xdp_dbus_remote_desktop_complete_select_devices(4c5998b2d9b7709b). (object, invocation, request->idcxx . . $ _XdpRequest#id.);
634
635 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
636 }
637
638 static void
639 replace_restore_remote_desktop_data_with_tokencxx . . $ replace_restore_remote_desktop_data_with_token(814bbb743cf2b07b). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session,
640 GVariantcxx . . $ GVariant# **in_out_results)
641 {
642 xdp_session_persistence_replace_restore_data_with_tokencxx . . $ xdp_session_persistence_replace_restore_data_with_token(97c9ce3fc2c5d9dc). (XDP_SESSIONcxx . . $ XDP_SESSION(a424cc90118498e6). (remote_desktop_session),
643 REMOTE_DESKTOP_PERMISSION_TABLEcxx . . $ `src/xdp-types.h:121:9`!,
644 in_out_results,
645 &remote_desktop_session->persist_modecxx . . $ _RemoteDesktopSession#persist_mode.,
646 &remote_desktop_session->restore_tokencxx . . $ _RemoteDesktopSession#restore_token.,
647 &remote_desktop_session->restore_datacxx . . $ _RemoteDesktopSession#restore_data.);
648 }
649
650 static gbooleancxx . . $ gboolean#
651 process_resultscxx . . $ process_results(84041c4594e42d4c). (RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session,
652 GVariantcxx . . $ GVariant# **in_out_results,
653 GErrorcxx . . $ GError# **error)
654 {
655 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariantIter) streams_iter = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
656 GVariantcxx . . $ GVariant# *results = *in_out_results;
657 uint32_tcxx . . $ uint32_t# devices = 0;
658 gbooleancxx . . $ gboolean# clipboard_enabled = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
659
660 if (g_variant_lookupcxx . . $ g_variant_lookup(7f27c6838ade8909). (results, "streams", "a(ua{sv})", &streams_iter))
661 {
662 remote_desktop_session->streamscxx . . $ _RemoteDesktopSession#streams. =
663 collect_screen_cast_stream_datacxx . . $ collect_screen_cast_stream_data(859a85f4252c91d7). (streams_iter);
664 }
665
666 if (g_variant_lookupcxx . . $ g_variant_lookup(7f27c6838ade8909). (results, "devices", "u", &devices))
667 remote_desktop_session->shared_devicescxx . . $ _RemoteDesktopSession#shared_devices. = devices;
668
669 if (g_variant_lookupcxx . . $ g_variant_lookup(7f27c6838ade8909). (results, "clipboard_enabled", "b", &clipboard_enabled))
670 remote_desktop_session->clipboard_enabledcxx . . $ _RemoteDesktopSession#clipboard_enabled. = clipboard_enabled;
671
672 replace_restore_remote_desktop_data_with_tokencxx . . $ replace_restore_remote_desktop_data_with_token(814bbb743cf2b07b). (remote_desktop_session,
673 in_out_results);
674
675 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
676 }
677
678 static void
679 start_donecxx . . $ start_done(aa1d200d824d915d). (GObjectcxx . . $ GObject# *source_object,
680 GAsyncResultcxx . . $ GAsyncResult# *res,
681 gpointercxx . . $ gpointer# data)
682 {
683 XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *impl = (XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *) source_object;
684 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(XdpRequest) request = data;
685 XdpSessioncxx . . $ XdpSession# *session;
686 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session;
687 guintcxx . . $ guint# response = 2;
688 gbooleancxx . . $ gboolean# should_close_session;
689 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) results = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
690 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
691
692 REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:56:9`! (request);
693
694 session = g_object_get_qdatacxx . . $ g_object_get_qdata(b02fb2b4fc775a4). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request), quark_request_sessioncxx . . $ quark_request_session.);
695 remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
696 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (session));
697 g_object_set_qdatacxx . . $ g_object_set_qdata(d7e2e719dfad0cc9). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request), quark_request_sessioncxx . . $ quark_request_session., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
698
699 if (!xdp_dbus_impl_remote_desktop_call_start_finishcxx . . $ xdp_dbus_impl_remote_desktop_call_start_finish(32392f5f43d7f7f3). (impl,
700 &response,
701 &results,
702 res,
703 &error))
704 {
705 g_dbus_error_strip_remote_errorcxx . . $ g_dbus_error_strip_remote_error(425e103a815b829). (error);
706 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:365:9`! ("A backend call failed: %s", error->message);
707 g_clear_errorcxx . . $ g_clear_error(19f343512d040fc2). (&error);
708 }
709
710 should_close_session = !request->exportedcxx . . $ _XdpRequest#exported. || response != 0;
711
712 if (request->exportedcxx . . $ _XdpRequest#exported.)
713 {
714 if (response == 0)
715 {
716 if (!process_resultscxx . . $ process_results(84041c4594e42d4c). (remote_desktop_session, &results, &error))
717 {
718 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:365:9`! ("Could not start remote desktop session: %s",
719 error->message);
720 g_clear_errorcxx . . $ g_clear_error(19f343512d040fc2). (&error);
721 g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&results, g_variant_unref);
722 response = 2;
723 should_close_session = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
724 }
725 }
726
727 if (!results)
728 {
729 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) results_builder =
730 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
731
732 results = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&results_builder));
733 }
734
735 xdp_dbus_request_emit_responsecxx . . $ xdp_dbus_request_emit_response(6deab25eec490adc). (XDP_DBUS_REQUESTcxx . . $ `build/src/xdp-dbus.h:6831:9`! (request),
736 response, results);
737 xdp_request_unexportcxx . . $ xdp_request_unexport(8bf1d2bcdc4be36d). (request);
738 }
739
740 if (should_close_session)
741 {
742 xdp_session_closecxx . . $ xdp_session_close(e4dd02f38fc14a2). (session, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!);
743 }
744 else if (!session->closedcxx . . $ _XdpSession#closed.)
745 {
746 g_debugcxx . . $ `<external>/5169755362661750954/gmessages.h:371:9`! ("remote desktop session owned by '%s' started", session->sender);
747 remote_desktop_session->statecxx . . $ _RemoteDesktopSession#state. = REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.;
748 }
749 }
750
751 static gbooleancxx . . $ gboolean#
752 handle_startcxx . . $ handle_start(3828c58e9abbb8fe). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
753 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
754 const char *arg_session_handle,
755 const char *arg_parent_window,
756 GVariantcxx . . $ GVariant# *arg_options)
757 {
758 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
759 XdpRequestcxx . . $ XdpRequest# *request = xdp_request_from_invocationcxx . . $ xdp_request_from_invocation(9583a51810815010). (invocation);
760 XdpSessioncxx . . $ XdpSession# *session;
761 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session;
762 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
763 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(XdpDbusImplRequest) impl_request = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
764 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
765 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
766 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
767
768 REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:56:9`! (request);
769
770 session = xdp_session_from_requestcxx . . $ xdp_session_from_request(b20d0b7552200bd). (arg_session_handle, request);
771 if (!session)
772 {
773 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
774 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
775 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
776 "Invalid session");
777 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
778 }
779
780 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
781
782 remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
783 switch (remote_desktop_session->statecxx . . $ _RemoteDesktopSession#state.)
784 {
785 case REMOTE_DESKTOP_SESSION_STATE_INITcxx . . $ REMOTE_DESKTOP_SESSION_STATE_INIT.:
786 break;
787 case REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.:
788 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
789 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
790 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
791 "Can only start once");
792 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
793 case REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.:
794 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
795 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
796 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
797 "Invalid session");
798 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
799 }
800
801 g_object_set_data_fullcxx . . $ g_object_set_data_full(218df00be1d2a06c). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request),
802 "window", g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (arg_parent_window), g_freecxx . . $ g_free(5d22bdacc48458e8).);
803
804 impl_request = xdp_dbus_impl_request_proxy_new_synccxx . . $ xdp_dbus_impl_request_proxy_new_sync(b36c38a372f8f089). (
805 g_dbus_proxy_get_connectioncxx . . $ g_dbus_proxy_get_connection(fd0690ce15ac5ecf). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl)),
806 G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIEScxx . . $ G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES.,
807 g_dbus_proxy_get_namecxx . . $ g_dbus_proxy_get_name(c2c3b8a4da378b0d). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl)),
808 request->idcxx . . $ _XdpRequest#id.,
809 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error);
810
811 if (!impl_request)
812 {
813 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
814 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
815 }
816
817 xdp_request_set_impl_requestcxx . . $ xdp_request_set_impl_request(18bd0ab3b325ada4). (request, impl_request);
818 xdp_request_exportcxx . . $ xdp_request_export(49d11f351a243e17). (request, g_dbus_method_invocation_get_connectioncxx . . $ g_dbus_method_invocation_get_connection(8c6afd006dd99032). (invocation));
819
820 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
821
822 g_object_set_qdata_fullcxx . . $ g_object_set_qdata_full(65a765778c030710). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (request),
823 quark_request_sessioncxx . . $ quark_request_session.,
824 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (session),
825 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).);
826
827 xdp_dbus_impl_remote_desktop_call_startcxx . . $ xdp_dbus_impl_remote_desktop_call_start(65c2ad00df6aff6a). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
828 request->idcxx . . $ _XdpRequest#id.,
829 arg_session_handle,
830 xdp_app_info_get_idcxx . . $ xdp_app_info_get_id(b9a768ac644c9329). (request->app_infocxx . . $ _XdpRequest#app_info.),
831 arg_parent_window,
832 options,
833 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
834 start_donecxx . . $ start_done(aa1d200d824d915d).,
835 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (request));
836
837 xdp_dbus_remote_desktop_complete_startcxx . . $ xdp_dbus_remote_desktop_complete_start(4c5998b2d9b7709b). (object, invocation, request->idcxx . . $ _XdpRequest#id.);
838
839 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
840 }
841
842 static gbooleancxx . . $ gboolean#
843 check_notifycxx . . $ check_notify(b9b60c1998118722). (XdpSessioncxx . . $ XdpSession# *session,
844 DeviceTypecxx . . $ DeviceType# device_type)
845 {
846 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
847
848 if (!remote_desktop_session->devices_selectedcxx . . $ _RemoteDesktopSession#devices_selected. || remote_desktop_session->uses_eiscxx . . $ _RemoteDesktopSession#uses_eis.)
849 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
850
851 switch (remote_desktop_session->statecxx . . $ _RemoteDesktopSession#state.)
852 {
853 case REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.:
854 break;
855 case REMOTE_DESKTOP_SESSION_STATE_INITcxx . . $ REMOTE_DESKTOP_SESSION_STATE_INIT.:
856 case REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.:
857 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
858 }
859
860 if ((remote_desktop_session->shared_devicescxx . . $ _RemoteDesktopSession#shared_devices. & device_type) == 0)
861 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
862
863 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
864 }
865
866 static gbooleancxx . . $ gboolean#
867 check_positioncxx . . $ check_position(35bcd75d1905d45f). (XdpSessioncxx . . $ XdpSession# *session,
868 uint32_tcxx . . $ uint32_t# stream,
869 double x,
870 double y)
871 {
872 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
873 GListcxx . . $ GList# *l;
874
875 for (l = remote_desktop_session->streamscxx . . $ _RemoteDesktopSession#streams.; l; l = l->nextcxx . . $ _GList#next.)
876 {
877 ScreenCastStreamcxx . . $ ScreenCastStream# *stream = l->datacxx . . $ _GList#data.;
878 int32_tcxx . . $ int32_t# width, height;
879
880 screen_cast_stream_get_sizecxx . . $ screen_cast_stream_get_size(44d6a6f91e5a4c4b). (stream, &width, &height);
881
882 if (x >= 0.0 && x < width &&
883 y >= 0.0 && y < height)
884 return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
885 }
886
887 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
888 }
889
890 static XdpOptionKeycxx . . $ XdpOptionKey# remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.[] = {
891 };
892
893 static gbooleancxx . . $ gboolean#
894 handle_notify_pointer_motioncxx . . $ handle_notify_pointer_motion(4a8e508a73a1ccac). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
895 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
896 const char *arg_session_handle,
897 GVariantcxx . . $ GVariant# *arg_options,
898 double dx,
899 double dy)
900 {
901 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
902 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
903 XdpSessioncxx . . $ XdpSession# *session;
904 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
905 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
906 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
907 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
908
909 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
910 if (!session)
911 {
912 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
913 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
914 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
915 "Invalid session");
916 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
917 }
918
919 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
920
921 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_POINTERcxx . . $ DEVICE_TYPE_POINTER.))
922 {
923 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
924 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
925 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
926 "Session is not allowed to call NotifyPointer methods");
927 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
928 }
929
930 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
931 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
932 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
933 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
934 {
935 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
936 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
937 }
938 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
939
940 xdp_dbus_impl_remote_desktop_call_notify_pointer_motioncxx . . $ xdp_dbus_impl_remote_desktop_call_notify_pointer_motion(1040da86b03ee4cb). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
941 session->idcxx . . $ _XdpSession#id.,
942 options,
943 dx, dy,
944 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
945
946 xdp_dbus_remote_desktop_complete_notify_pointer_motioncxx . . $ xdp_dbus_remote_desktop_complete_notify_pointer_motion(451ad463b80c9c1b). (object, invocation);
947
948 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
949 }
950
951 static gbooleancxx . . $ gboolean#
952 handle_notify_pointer_motion_absolutecxx . . $ handle_notify_pointer_motion_absolute(2aa5f491d16cf8). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
953 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
954 const char *arg_session_handle,
955 GVariantcxx . . $ GVariant# *arg_options,
956 uint32_tcxx . . $ uint32_t# stream,
957 double x,
958 double y)
959 {
960 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
961 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
962 XdpSessioncxx . . $ XdpSession# *session;
963 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
964 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
965 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
966 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
967
968 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
969 if (!session)
970 {
971 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
972 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
973 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
974 "Invalid session");
975 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
976 }
977
978 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
979
980 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_POINTERcxx . . $ DEVICE_TYPE_POINTER.))
981 {
982 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
983 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
984 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
985 "Session is not allowed to call NotifyPointer methods");
986 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
987 }
988
989 if (!check_positioncxx . . $ check_position(35bcd75d1905d45f). (session, stream, x, y))
990 {
991 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
992 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
993 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
994 "Invalid position");
995 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
996 }
997
998 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
999 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1000 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1001 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1002 {
1003 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1004 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1005 }
1006
1007 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1008
1009 xdp_dbus_impl_remote_desktop_call_notify_pointer_motion_absolutecxx . . $ xdp_dbus_impl_remote_desktop_call_notify_pointer_motion_absolute(719a7230508f077a). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1010 session->idcxx . . $ _XdpSession#id.,
1011 options,
1012 stream,
1013 x, y,
1014 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1015
1016 xdp_dbus_remote_desktop_complete_notify_pointer_motion_absolutecxx . . $ xdp_dbus_remote_desktop_complete_notify_pointer_motion_absolute(451ad463b80c9c1b). (object, invocation);
1017
1018 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1019 }
1020
1021 static gbooleancxx . . $ gboolean#
1022 handle_notify_pointer_buttoncxx . . $ handle_notify_pointer_button(158104607e584f33). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1023 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1024 const char *arg_session_handle,
1025 GVariantcxx . . $ GVariant# *arg_options,
1026 int32_tcxx . . $ int32_t# button,
1027 uint32_tcxx . . $ uint32_t# state)
1028 {
1029 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1030 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1031 XdpSessioncxx . . $ XdpSession# *session;
1032 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1033 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1034 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1035 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1036
1037 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1038 if (!session)
1039 {
1040 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1041 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1042 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1043 "Invalid session");
1044 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1045 }
1046
1047 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1048
1049 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_POINTERcxx . . $ DEVICE_TYPE_POINTER.))
1050 {
1051 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1052 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1053 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1054 "Session is not allowed to call NotifyPointer methods");
1055 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1056 }
1057
1058 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1059 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1060 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1061 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1062 {
1063 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1064 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1065 }
1066
1067 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1068
1069 xdp_dbus_impl_remote_desktop_call_notify_pointer_buttoncxx . . $ xdp_dbus_impl_remote_desktop_call_notify_pointer_button(6a5746a54d13a799). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1070 session->idcxx . . $ _XdpSession#id.,
1071 options,
1072 button,
1073 state,
1074 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1075
1076 xdp_dbus_remote_desktop_complete_notify_pointer_buttoncxx . . $ xdp_dbus_remote_desktop_complete_notify_pointer_button(451ad463b80c9c1b). (object, invocation);
1077
1078 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1079 }
1080
1081 static XdpOptionKeycxx . . $ XdpOptionKey# remote_desktop_notify_pointer_axis_optionscxx . . $ remote_desktop_notify_pointer_axis_options.[] = {
1082 { "finish", G_VARIANT_TYPE_BOOLEANcxx . . $ `<external>/14064154155447831270/gvarianttype.h:41:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! },
1083 };
1084
1085 static gbooleancxx . . $ gboolean#
1086 handle_notify_pointer_axiscxx . . $ handle_notify_pointer_axis(4a8e508a73a1ccac). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1087 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1088 const char *arg_session_handle,
1089 GVariantcxx . . $ GVariant# *arg_options,
1090 double dx,
1091 double dy)
1092 {
1093 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1094 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1095 XdpSessioncxx . . $ XdpSession# *session;
1096 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1097 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1098 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1099 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1100
1101 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1102 if (!session)
1103 {
1104 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1105 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1106 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1107 "Invalid session");
1108 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1109 }
1110
1111 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1112
1113 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_POINTERcxx . . $ DEVICE_TYPE_POINTER.))
1114 {
1115 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1116 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1117 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1118 "Session is not allowed to call NotifyPointer methods");
1119 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1120 }
1121
1122 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1123 remote_desktop_notify_pointer_axis_optionscxx . . $ remote_desktop_notify_pointer_axis_options.,
1124 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_pointer_axis_options),
1125 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1126 {
1127 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1128 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1129 }
1130
1131 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1132
1133 xdp_dbus_impl_remote_desktop_call_notify_pointer_axiscxx . . $ xdp_dbus_impl_remote_desktop_call_notify_pointer_axis(1040da86b03ee4cb). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1134 session->idcxx . . $ _XdpSession#id.,
1135 options,
1136 dx, dy,
1137 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1138
1139 xdp_dbus_remote_desktop_complete_notify_pointer_axiscxx . . $ xdp_dbus_remote_desktop_complete_notify_pointer_axis(451ad463b80c9c1b). (object, invocation);
1140
1141 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1142 }
1143
1144 static gbooleancxx . . $ gboolean#
1145 handle_notify_pointer_axis_discretecxx . . $ handle_notify_pointer_axis_discrete(b6fe84902eedcb7c). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1146 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1147 const char *arg_session_handle,
1148 GVariantcxx . . $ GVariant# *arg_options,
1149 uint32_tcxx . . $ uint32_t# axis,
1150 int32_tcxx . . $ int32_t# steps)
1151 {
1152 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1153 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1154 XdpSessioncxx . . $ XdpSession# *session;
1155 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1156 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1157 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1158 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1159
1160 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1161 if (!session)
1162 {
1163 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1164 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1165 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1166 "Invalid session");
1167 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1168 }
1169
1170 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1171
1172 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_POINTERcxx . . $ DEVICE_TYPE_POINTER.))
1173 {
1174 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1175 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1176 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1177 "Session is not allowed to call NotifyPointer methods");
1178 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1179 }
1180
1181 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1182 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1183 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1184 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1185 {
1186 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1187 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1188 }
1189 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1190
1191 xdp_dbus_impl_remote_desktop_call_notify_pointer_axis_discretecxx . . $ xdp_dbus_impl_remote_desktop_call_notify_pointer_axis_discrete(d3c470c9d2899ad3). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1192 session->idcxx . . $ _XdpSession#id.,
1193 options,
1194 axis,
1195 steps,
1196 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1197
1198 xdp_dbus_remote_desktop_complete_notify_pointer_axis_discretecxx . . $ xdp_dbus_remote_desktop_complete_notify_pointer_axis_discrete(451ad463b80c9c1b). (object, invocation);
1199
1200 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1201 }
1202
1203 static gbooleancxx . . $ gboolean#
1204 handle_notify_keyboard_keycodecxx . . $ handle_notify_keyboard_keycode(158104607e584f33). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1205 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1206 const char *arg_session_handle,
1207 GVariantcxx . . $ GVariant# *arg_options,
1208 int32_tcxx . . $ int32_t# keycode,
1209 uint32_tcxx . . $ uint32_t# state)
1210 {
1211 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1212 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1213 XdpSessioncxx . . $ XdpSession# *session;
1214 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1215 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1216 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1217 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1218
1219 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1220 if (!session)
1221 {
1222 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1223 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1224 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1225 "Invalid session");
1226 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1227 }
1228
1229 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1230
1231 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_KEYBOARDcxx . . $ DEVICE_TYPE_KEYBOARD.))
1232 {
1233 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1234 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1235 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1236 "Session is not allowed to call NotifyPointer methods");
1237 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1238 }
1239
1240 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1241 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1242 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1243 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1244 {
1245 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1246 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1247 }
1248 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1249
1250 xdp_dbus_impl_remote_desktop_call_notify_keyboard_keycodecxx . . $ xdp_dbus_impl_remote_desktop_call_notify_keyboard_keycode(6a5746a54d13a799). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1251 session->idcxx . . $ _XdpSession#id.,
1252 options,
1253 keycode,
1254 state,
1255 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1256
1257 xdp_dbus_remote_desktop_complete_notify_keyboard_keycodecxx . . $ xdp_dbus_remote_desktop_complete_notify_keyboard_keycode(451ad463b80c9c1b). (object, invocation);
1258
1259 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1260 }
1261
1262 static gbooleancxx . . $ gboolean#
1263 handle_notify_keyboard_keysymcxx . . $ handle_notify_keyboard_keysym(158104607e584f33). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1264 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1265 const char *arg_session_handle,
1266 GVariantcxx . . $ GVariant# *arg_options,
1267 int32_tcxx . . $ int32_t# keysym,
1268 uint32_tcxx . . $ uint32_t# state)
1269 {
1270 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1271 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1272 XdpSessioncxx . . $ XdpSession# *session;
1273 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1274 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1275 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1276 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1277
1278 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1279 if (!session)
1280 {
1281 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1282 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1283 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1284 "Invalid session");
1285 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1286 }
1287
1288 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1289
1290 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_KEYBOARDcxx . . $ DEVICE_TYPE_KEYBOARD.))
1291 {
1292 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1293 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1294 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1295 "Session is not allowed to call NotifyKeyboard methods");
1296 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1297 }
1298
1299 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1300 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1301 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1302 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1303 {
1304 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1305 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1306 }
1307 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1308
1309 xdp_dbus_impl_remote_desktop_call_notify_keyboard_keysymcxx . . $ xdp_dbus_impl_remote_desktop_call_notify_keyboard_keysym(6a5746a54d13a799). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1310 session->idcxx . . $ _XdpSession#id.,
1311 options,
1312 keysym,
1313 state,
1314 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1315
1316 xdp_dbus_remote_desktop_complete_notify_keyboard_keysymcxx . . $ xdp_dbus_remote_desktop_complete_notify_keyboard_keysym(451ad463b80c9c1b). (object, invocation);
1317
1318 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1319 }
1320
1321 static gbooleancxx . . $ gboolean#
1322 handle_notify_touch_downcxx . . $ handle_notify_touch_down(f91f75baf67e5662). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1323 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1324 const char *arg_session_handle,
1325 GVariantcxx . . $ GVariant# *arg_options,
1326 uint32_tcxx . . $ uint32_t# stream,
1327 uint32_tcxx . . $ uint32_t# slot,
1328 double x,
1329 double y)
1330 {
1331 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1332 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1333 XdpSessioncxx . . $ XdpSession# *session;
1334 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1335 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1336 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1337 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1338
1339 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1340 if (!session)
1341 {
1342 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1343 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1344 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1345 "Invalid session");
1346 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1347 }
1348
1349 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1350
1351 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_TOUCHSCREENcxx . . $ DEVICE_TYPE_TOUCHSCREEN.))
1352 {
1353 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1354 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1355 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1356 "Session is not allowed to call NotifyTouch methods");
1357 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1358 }
1359
1360 if (!check_positioncxx . . $ check_position(35bcd75d1905d45f). (session, stream, x, y))
1361 {
1362 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1363 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1364 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1365 "Invalid position");
1366 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1367 }
1368
1369 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1370 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1371 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1372 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1373 {
1374 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1375 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1376 }
1377 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1378
1379 xdp_dbus_impl_remote_desktop_call_notify_touch_downcxx . . $ xdp_dbus_impl_remote_desktop_call_notify_touch_down(38b268045df8123b). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1380 session->idcxx . . $ _XdpSession#id.,
1381 options,
1382 stream,
1383 slot,
1384 x, y,
1385 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1386
1387 xdp_dbus_remote_desktop_complete_notify_touch_downcxx . . $ xdp_dbus_remote_desktop_complete_notify_touch_down(451ad463b80c9c1b). (object, invocation);
1388
1389 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1390 }
1391
1392 static gbooleancxx . . $ gboolean#
1393 handle_notify_touch_motioncxx . . $ handle_notify_touch_motion(f91f75baf67e5662). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1394 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1395 const char *arg_session_handle,
1396 GVariantcxx . . $ GVariant# *arg_options,
1397 uint32_tcxx . . $ uint32_t# stream,
1398 uint32_tcxx . . $ uint32_t# slot,
1399 double x,
1400 double y)
1401 {
1402 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1403 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1404 XdpSessioncxx . . $ XdpSession# *session;
1405 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1406 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1407 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1408 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1409
1410 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1411 if (!session)
1412 {
1413 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1414 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1415 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1416 "Invalid session");
1417 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1418 }
1419
1420 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1421
1422 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_TOUCHSCREENcxx . . $ DEVICE_TYPE_TOUCHSCREEN.))
1423 {
1424 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1425 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1426 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1427 "Session is not allowed to call NotifyTouch methods");
1428 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1429 }
1430
1431 if (!check_positioncxx . . $ check_position(35bcd75d1905d45f). (session, stream, x, y))
1432 {
1433 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1434 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1435 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1436 "Invalid position");
1437 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1438 }
1439
1440 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1441 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1442 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1443 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1444 {
1445 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1446 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1447 }
1448 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1449
1450 xdp_dbus_impl_remote_desktop_call_notify_touch_motioncxx . . $ xdp_dbus_impl_remote_desktop_call_notify_touch_motion(38b268045df8123b). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1451 session->idcxx . . $ _XdpSession#id.,
1452 options,
1453 stream,
1454 slot,
1455 x, y,
1456 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1457
1458 xdp_dbus_remote_desktop_complete_notify_touch_motioncxx . . $ xdp_dbus_remote_desktop_complete_notify_touch_motion(451ad463b80c9c1b). (object, invocation);
1459
1460 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1461 }
1462
1463 static gbooleancxx . . $ gboolean#
1464 handle_notify_touch_upcxx . . $ handle_notify_touch_up(f0744c82da29156d). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1465 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1466 const char *arg_session_handle,
1467 GVariantcxx . . $ GVariant# *arg_options,
1468 uint32_tcxx . . $ uint32_t# slot)
1469 {
1470 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1471 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1472 XdpSessioncxx . . $ XdpSession# *session;
1473 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1474 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1475 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1476 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1477
1478 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1479 if (!session)
1480 {
1481 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1482 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1483 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1484 "Invalid session");
1485 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1486 }
1487
1488 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1489
1490 if (!check_notifycxx . . $ check_notify(b9b60c1998118722). (session, DEVICE_TYPE_TOUCHSCREENcxx . . $ DEVICE_TYPE_TOUCHSCREEN.))
1491 {
1492 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1493 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1494 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1495 "Session is not allowed to call NotifyTouch methods");
1496 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1497 }
1498
1499 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1500 remote_desktop_notify_optionscxx . . $ remote_desktop_notify_options.,
1501 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_notify_options),
1502 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1503 {
1504 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1505 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1506 }
1507 options = g_variant_ref_sinkcxx . . $ g_variant_ref_sink(3606eab35379b54a). (g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder));
1508
1509 xdp_dbus_impl_remote_desktop_call_notify_touch_upcxx . . $ xdp_dbus_impl_remote_desktop_call_notify_touch_up(ac5f6486c02ce91d). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1510 session->idcxx . . $ _XdpSession#id.,
1511 options,
1512 slot,
1513 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`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1514
1515 xdp_dbus_remote_desktop_complete_notify_touch_upcxx . . $ xdp_dbus_remote_desktop_complete_notify_touch_up(451ad463b80c9c1b). (object, invocation);
1516
1517 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1518 }
1519
1520 static XdpOptionKeycxx . . $ XdpOptionKey# remote_desktop_connect_to_eis_optionscxx . . $ remote_desktop_connect_to_eis_options.[] = {
1521 };
1522
1523 static gbooleancxx . . $ gboolean#
1524 handle_connect_to_eiscxx . . $ handle_connect_to_eis(d66a140fb3f65437). (XdpDbusRemoteDesktopcxx . . $ XdpDbusRemoteDesktop# *object,
1525 GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
1526 GUnixFDListcxx . . $ GUnixFDList# *in_fd_list,
1527 const char *arg_session_handle,
1528 GVariantcxx . . $ GVariant# *arg_options)
1529 {
1530 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1531 XdpAppInfocxx . . $ XdpAppInfo# *app_info = xdp_invocation_get_app_infocxx . . $ xdp_invocation_get_app_info(36d3606d1003be6). (invocation);
1532 XdpSessioncxx . . $ XdpSession# *session;
1533 RemoteDesktopSessioncxx . . $ RemoteDesktopSession# *remote_desktop_session;
1534 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GUnixFDList) out_fd_list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1535 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1536 g_autocxx . . $ `<external>/12741050725406041920/gmacros.h:1428:9`!(GVariantBuilder) options_builder =
1537 G_VARIANT_BUILDER_INITcxx . . $ `<external>/10279604295420929244/gvariant.h:369:9`! (G_VARIANT_TYPE_VARDICTcxx . . $ `<external>/14064154155447831270/gvarianttype.h:279:9`!);
1538 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GVariant) fd = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1539
1540 session = xdp_session_from_app_infocxx . . $ xdp_session_from_app_info(8bac21a832d9196). (arg_session_handle, app_info);
1541 if (!session)
1542 {
1543 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1544 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1545 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1546 "Invalid session");
1547 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1548 }
1549
1550 SESSION_AUTOLOCK_UNREFcxx . . $ `src/xdp-session.h:81:9`! (session);
1551
1552 if (!IS_REMOTE_DESKTOP_SESSIONcxx . . $ IS_REMOTE_DESKTOP_SESSION(dedf1e9b1c614a07). (session))
1553 {
1554 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1555 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1556 G_DBUS_ERROR_ACCESS_DENIEDcxx . . $ G_DBUS_ERROR_ACCESS_DENIED.,
1557 "Invalid session");
1558 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1559 }
1560
1561 remote_desktop_session = REMOTE_DESKTOP_SESSIONcxx . . $ REMOTE_DESKTOP_SESSION(288c4d99424a6019). (session);
1562
1563 if (remote_desktop_session->uses_eiscxx . . $ _RemoteDesktopSession#uses_eis.)
1564 {
1565 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1566 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1567 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1568 "Session is already connected");
1569 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1570 }
1571
1572 switch (remote_desktop_session->statecxx . . $ _RemoteDesktopSession#state.)
1573 {
1574 case REMOTE_DESKTOP_SESSION_STATE_STARTEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_STARTED.:
1575 break;
1576 case REMOTE_DESKTOP_SESSION_STATE_INITcxx . . $ REMOTE_DESKTOP_SESSION_STATE_INIT.:
1577 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1578 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1579 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1580 "Session is not ready");
1581 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1582 case REMOTE_DESKTOP_SESSION_STATE_CLOSEDcxx . . $ REMOTE_DESKTOP_SESSION_STATE_CLOSED.:
1583 g_dbus_method_invocation_return_errorcxx . . $ g_dbus_method_invocation_return_error(2860f9a06c72d77e). (invocation,
1584 G_DBUS_ERRORcxx . . $ `<external>/517763016858796244/gdbuserror.h:49:9`!,
1585 G_DBUS_ERROR_FAILEDcxx . . $ G_DBUS_ERROR_FAILED.,
1586 "Session is already closed");
1587 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1588 }
1589
1590 if (!xdp_filter_optionscxx . . $ xdp_filter_options(e9350dfce557ba5e). (arg_options, &options_builder,
1591 remote_desktop_connect_to_eis_optionscxx . . $ remote_desktop_connect_to_eis_options.,
1592 G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`! (remote_desktop_connect_to_eis_options),
1593 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &error))
1594 {
1595 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1596 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1597 }
1598
1599 if (!xdp_dbus_impl_remote_desktop_call_connect_to_eis_synccxx . . $ xdp_dbus_impl_remote_desktop_call_connect_to_eis_sync(84ed0599e7d9aa98). (remote_desktop->implcxx . . $ _RemoteDesktop#impl.,
1600 arg_session_handle,
1601 xdp_app_info_get_idcxx . . $ xdp_app_info_get_id(b9a768ac644c9329). (app_info),
1602 g_variant_builder_endcxx . . $ g_variant_builder_end(6d60952e65fc2b86). (&options_builder),
1603 in_fd_list,
1604 &fd,
1605 &out_fd_list,
1606 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
1607 &error))
1608 {
1609 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:365:9`! ("Failed to ConnectToEIS: %s", error->message);
1610 g_dbus_method_invocation_return_gerrorcxx . . $ g_dbus_method_invocation_return_gerror(f84b6a1e02aa551). (invocation, error);
1611 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1612 }
1613
1614 remote_desktop_session->uses_eiscxx . . $ _RemoteDesktopSession#uses_eis. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!;
1615
1616 xdp_dbus_remote_desktop_complete_connect_to_eiscxx . . $ xdp_dbus_remote_desktop_complete_connect_to_eis(ef44eda79902a446). (object, invocation, out_fd_list, fd);
1617 return G_DBUS_METHOD_INVOCATION_HANDLEDcxx . . $ `<external>/7877694576918326146/gdbusmethodinvocation.h:56:9`!;
1618 }
1619
1620 static void
1621 remote_desktop_iface_initcxx . . $ remote_desktop_iface_init(c23daa446e6f034e). (XdpDbusRemoteDesktopIfacecxx . . $ XdpDbusRemoteDesktopIface# *iface)
1622 {
1623 iface->handle_create_sessioncxx . . $ _XdpDbusRemoteDesktopIface#handle_create_session. = handle_create_sessioncxx . . $ handle_create_session(f091853939ee14e0).;
1624 iface->handle_select_devicescxx . . $ _XdpDbusRemoteDesktopIface#handle_select_devices. = handle_select_devicescxx . . $ handle_select_devices(d52e8b4b0076d2e9).;
1625 iface->handle_startcxx . . $ _XdpDbusRemoteDesktopIface#handle_start. = handle_startcxx . . $ handle_start(3828c58e9abbb8fe).;
1626
1627 iface->handle_notify_pointer_motioncxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_pointer_motion. = handle_notify_pointer_motioncxx . . $ handle_notify_pointer_motion(4a8e508a73a1ccac).;
1628 iface->handle_notify_pointer_motion_absolutecxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_pointer_motion_absolute. = handle_notify_pointer_motion_absolutecxx . . $ handle_notify_pointer_motion_absolute(2aa5f491d16cf8).;
1629 iface->handle_notify_pointer_buttoncxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_pointer_button. = handle_notify_pointer_buttoncxx . . $ handle_notify_pointer_button(158104607e584f33).;
1630 iface->handle_notify_pointer_axiscxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_pointer_axis. = handle_notify_pointer_axiscxx . . $ handle_notify_pointer_axis(4a8e508a73a1ccac).;
1631 iface->handle_notify_pointer_axis_discretecxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_pointer_axis_discrete. = handle_notify_pointer_axis_discretecxx . . $ handle_notify_pointer_axis_discrete(b6fe84902eedcb7c).;
1632 iface->handle_notify_keyboard_keycodecxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_keyboard_keycode. = handle_notify_keyboard_keycodecxx . . $ handle_notify_keyboard_keycode(158104607e584f33).;
1633 iface->handle_notify_keyboard_keysymcxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_keyboard_keysym. = handle_notify_keyboard_keysymcxx . . $ handle_notify_keyboard_keysym(158104607e584f33).;
1634 iface->handle_notify_touch_downcxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_touch_down. = handle_notify_touch_downcxx . . $ handle_notify_touch_down(f91f75baf67e5662).;
1635 iface->handle_notify_touch_motioncxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_touch_motion. = handle_notify_touch_motioncxx . . $ handle_notify_touch_motion(f91f75baf67e5662).;
1636 iface->handle_notify_touch_upcxx . . $ _XdpDbusRemoteDesktopIface#handle_notify_touch_up. = handle_notify_touch_upcxx . . $ handle_notify_touch_up(f0744c82da29156d).;
1637
1638 iface->handle_connect_to_eiscxx . . $ _XdpDbusRemoteDesktopIface#handle_connect_to_eis. = handle_connect_to_eiscxx . . $ handle_connect_to_eis(d66a140fb3f65437).;
1639 }
1640
1641 static void
1642 remote_desktop_disposecxx . . $ remote_desktop_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object)
1643 {
1644 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop = (RemoteDesktopcxx . . $ RemoteDesktop# *) object;
1645
1646 g_clear_objectcxx . . $ `<external>/1341695927569185362/gobject.h:695:9`! (&remote_desktop->impl);
1647
1648 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (remote_desktop_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object);
1649 }
1650
1651
1652 static void
1653 remote_desktop_initcxx . . $ remote_desktop_init(2dc24bddabf2e176). (RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop)
1654 {
1655 }
1656
1657 static void
1658 remote_desktop_class_initcxx . . $ remote_desktop_class_init(6f8ead1a651dfc66). (RemoteDesktopClasscxx . . $ RemoteDesktopClass# *klass)
1659 {
1660 GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass);
1661
1662 object_class->disposecxx . . $ _GObjectClass#dispose. = remote_desktop_disposecxx . . $ remote_desktop_dispose(6087475fa43034d3).;
1663 }
1664
1665 static RemoteDesktopcxx . . $ RemoteDesktop# *
1666 remote_desktop_newcxx . . $ remote_desktop_new(b758d414feea1a17). (XdpContextcxx . . $ XdpContext# *context,
1667 XdpDbusImplRemoteDesktopcxx . . $ XdpDbusImplRemoteDesktop# *impl)
1668 {
1669 RemoteDesktopcxx . . $ RemoteDesktop# *remote_desktop;
1670
1671 remote_desktop = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (remote_desktop_get_typecxx . . $ remote_desktop_get_type(f708dce9a8856c70). (), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1672 remote_desktop->contextcxx . . $ _RemoteDesktop#context. = context;
1673 remote_desktop->implcxx . . $ _RemoteDesktop#impl. = g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`! (impl);
1674
1675 g_dbus_proxy_set_default_timeoutcxx . . $ g_dbus_proxy_set_default_timeout(c68bf28eca88e1d4). (G_DBUS_PROXYcxx . . $ `<external>/4635717660623816082/gdbusproxy.h:36:9`! (remote_desktop->impl), G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!);
1676
1677 xdp_dbus_remote_desktop_set_versioncxx . . $ xdp_dbus_remote_desktop_set_version(8640d20c1999141c). (XDP_DBUS_REMOTE_DESKTOPcxx . . $ `build/src/xdp-dbus.h:6170:9`! (remote_desktop), 2);
1678
1679 g_object_bind_propertycxx . . $ g_object_bind_property(c97799d956973899). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (remote_desktop->impl), "available-device-types",
1680 G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (remote_desktop), "available-device-types",
1681 G_BINDING_SYNC_CREATEcxx . . $ G_BINDING_SYNC_CREATE.);
1682
1683 return remote_desktop;
1684 }
1685
1686 void
1687 init_remote_desktopcxx . . $ init_remote_desktop(7d190a42f72e5c4f). (XdpContextcxx . . $ XdpContext# *context)
1688 {
1689 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(RemoteDesktop) remote_desktop = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1690 GDBusConnectioncxx . . $ GDBusConnection# *connection = xdp_context_get_connectioncxx . . $ xdp_context_get_connection(a09559f10e8590c5). (context);
1691 XdpPortalConfigcxx . . $ XdpPortalConfig# *config = xdp_context_get_configcxx . . $ xdp_context_get_config(3deea62d2e42aa7). (context);
1692 XdpImplConfigcxx . . $ XdpImplConfig# *impl_config;
1693 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(XdpDbusImplRemoteDesktop) impl = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1694 g_autoptrcxx . . $ `<external>/12741050725406041920/gmacros.h:1424:9`!(GError) error = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1695
1696 impl_config = xdp_portal_config_findcxx . . $ xdp_portal_config_find(5212eece2399491d). (config, REMOTE_DESKTOP_DBUS_IMPL_IFACEcxx . . $ `src/xdp-types.h:120:9`!);
1697 if (impl_config == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1698 return;
1699
1700 impl = xdp_dbus_impl_remote_desktop_proxy_new_synccxx . . $ xdp_dbus_impl_remote_desktop_proxy_new_sync(67e13fd122c68e4c). (connection,
1701 G_DBUS_PROXY_FLAGS_NONEcxx . . $ G_DBUS_PROXY_FLAGS_NONE.,
1702 impl_config->dbus_namecxx . . $ $anonymous_type_accd296e72675a4a_0#dbus_name.,
1703 DESKTOP_DBUS_PATHcxx . . $ `src/xdp-types.h:47:9`!,
1704 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!,
1705 &error);
1706 if (impl == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
1707 {
1708 g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:365:9`! ("Failed to create remote desktop proxy: %s", error->message);
1709 return;
1710 }
1711
1712 remote_desktop = remote_desktop_newcxx . . $ remote_desktop_new(b758d414feea1a17). (context, impl);
1713
1714 xdp_context_take_and_export_portalcxx . . $ xdp_context_take_and_export_portal(54303e2939dd494f). (context,
1715 G_DBUS_INTERFACE_SKELETONcxx . . $ `<external>/1991948168568871819/gdbusinterfaceskeleton.h:32:9`! (g_steal_pointercxx . . $ `<external>/1123956534522462559/gmem.h:250:9`! (&remote_desktop)),
1716 XDP_CONTEXT_EXPORT_FLAGS_NONEcxx . . $ XDP_CONTEXT_EXPORT_FLAGS_NONE.);
1717 }