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