Debian Codegraph @

src/xdp-request.h

raw symbols SCIP
1 /*
2 * Copyright © 2016 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 * Authors:
20 * Alexander Larsson <[email protected]>
21 * Matthias Clasen <[email protected]>
22 */
23
24 #pragma once
25
26 #include "xdp-app-info.h"cxx . . $ `<file>/src/xdp-app-info.h`/
27 #include "xdp-utils.h"cxx . . $ `<file>/src/xdp-utils.h`/
28 #include "xdp-dbus.h"cxx . . $ `<file>/build/src/xdp-dbus.h`/
29 #include "xdp-impl-dbus.h"cxx . . $ `<file>/build/src/xdp-impl-dbus.h`/
30
31 typedef enumcxx . . $ $anonymous_type_89109ec4d91435c5_0# {
32 XDG_DESKTOP_PORTAL_RESPONSE_SUCCESScxx . . $ XDG_DESKTOP_PORTAL_RESPONSE_SUCCESS. = 0,
33 XDG_DESKTOP_PORTAL_RESPONSE_CANCELLEDcxx . . $ XDG_DESKTOP_PORTAL_RESPONSE_CANCELLED.,
34 XDG_DESKTOP_PORTAL_RESPONSE_OTHERcxx . . $ XDG_DESKTOP_PORTAL_RESPONSE_OTHER.
35 } XdgDesktopPortalResponseEnumcxx . . $ XdgDesktopPortalResponseEnum#;
36
37 typedef struct _XdpRequestcxx . . $ _XdpRequest#
38 {
39 XdpDbusRequestSkeletoncxx . . $ XdpDbusRequestSkeleton# parent_instancecxx . . $ _XdpRequest#parent_instance.;
40
41 gbooleancxx . . $ gboolean# exportedcxx . . $ _XdpRequest#exported.;
42 char *idcxx . . $ _XdpRequest#id.;
43 char *sendercxx . . $ _XdpRequest#sender.;
44 GMutexcxx . . $ GMutex# mutexcxx . . $ _XdpRequest#mutex.;
45 XdpAppInfocxx . . $ XdpAppInfo# *app_infocxx . . $ _XdpRequest#app_info.;
46
47 XdpDbusImplRequestcxx . . $ XdpDbusImplRequest# *impl_requestcxx . . $ _XdpRequest#impl_request.;
48 } XdpRequestcxx . . $ XdpRequest#;
49
50 typedef struct _XdpRequestClasscxx . . $ _XdpRequestClass#
51 {
52 XdpDbusRequestSkeletonClasscxx . . $ XdpDbusRequestSkeletonClass# parent_classcxx . . $ _XdpRequestClass#parent_class.;
53 } XdpRequestClasscxx . . $ XdpRequestClass#;
54
55 GTypecxx . . $ GType# xdp_request_get_typecxx . . $ xdp_request_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
56
57 G_GNUC_UNUSEDcxx . . $ `<external>/12741050725406041920/gmacros.h:647:9`! static inline XdpRequestcxx . . $ XdpRequest# *
58 XDP_REQUESTcxx . . $ XDP_REQUEST(e3ad50a9247c4f2e). (gpointercxx . . $ gpointer# ptr)
59 {
60 return G_TYPE_CHECK_INSTANCE_CASTcxx . . $ `<external>/9567554376676449156/gtype.h:528:9`! (ptr, xdp_request_get_type (), XdpRequest);
61 }
62
63 G_GNUC_UNUSEDcxx . . $ `<external>/12741050725406041920/gmacros.h:647:9`! static inline gbooleancxx . . $ gboolean#
64 XDP_IS_REQUESTcxx . . $ XDP_IS_REQUEST(dedf1e9b1c614a07). (gpointercxx . . $ gpointer# ptr)
65 {
66 return G_TYPE_CHECK_INSTANCE_TYPEcxx . . $ GType# (ptr, xdp_request_get_type ());
67 }
68
69 G_DEFINE_AUTOPTR_CLEANUP_FUNCcxx . . $ XdpRequest# (XdpRequest, g_object_unref)
70
71 void xdp_request_init_invocationcxx . . $ xdp_request_init_invocation(57559262718a5b8e). (GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation,
72 XdpAppInfocxx . . $ XdpAppInfo# *app_info);
73
74 XdpRequestcxx . . $ XdpRequest# *xdp_request_from_invocationcxx . . $ xdp_request_from_invocation(9583a51810815010). (GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation);
75
76 void xdp_request_exportcxx . . $ xdp_request_export(49d11f351a243e17). (XdpRequestcxx . . $ XdpRequest# *request,
77 GDBusConnectioncxx . . $ GDBusConnection# *connection);
78
79 void xdp_request_unexportcxx . . $ xdp_request_unexport(8bf1d2bcdc4be36d). (XdpRequestcxx . . $ XdpRequest# *request);
80
81 const char *xdp_request_get_object_pathcxx . . $ xdp_request_get_object_path(512cb43e4698c6af). (XdpRequestcxx . . $ XdpRequest# *request);
82
83 void close_requests_for_sendercxx . . $ close_requests_for_sender(85c52e162fed56f9). (const char *sender);
84
85 void xdp_request_set_impl_requestcxx . . $ xdp_request_set_impl_request(18bd0ab3b325ada4). (XdpRequestcxx . . $ XdpRequest# *request,
86 XdpDbusImplRequestcxx . . $ XdpDbusImplRequest# *impl_request);
87
88 static inline void
89 auto_unlock_helpercxx . . $ auto_unlock_helper(d680cad0e92bbf0b). (GMutexcxx . . $ GMutex# **mutex)
90 {
91 if (*mutex)
92 g_mutex_unlockcxx . . $ g_mutex_unlock(d80b1953a7cb7fd1). (*mutex);
93 }
94
95 static inline GMutexcxx . . $ GMutex# *
96 auto_lock_helpercxx . . $ auto_lock_helper(8c4bbb0083e63760). (GMutexcxx . . $ GMutex# *mutex)
97 {
98 if (mutex)
99 g_mutex_lockcxx . . $ g_mutex_lock(d80b1953a7cb7fd1). (mutex);
100 return mutex;
101 }
102
103 #define REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:103:9`!(request) G_GNUC_UNUSEDcxx . . $ `<external>/12741050725406041920/gmacros.h:647:9`! __attribute__((cleanup (auto_unlock_helper))) GMutex * G_PASTEcxx . . $ `<external>/12741050725406041920/gmacros.h:903:9`! (request_auto_unlock, __LINE__) = auto_lock_helper (&request->mutex);