| 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-dbus.h"cxx . . $ `<file>/build/src/xdp-dbus.h`/ |
| 28 | #include "xdp-impl-dbus.h"cxx . . $ `<file>/build/src/xdp-impl-dbus.h`/ |
| 29 | #include "xdp-utils.h"cxx . . $ `<file>/src/xdp-utils.h`/ |
| 30 | |
| 31 | typedef struct _XdpRequestcxx . . $ _XdpRequest# |
| 32 | { |
| 33 | XdpDbusRequestSkeletoncxx . . $ XdpDbusRequestSkeleton# parent_instancecxx . . $ _XdpRequest#parent_instance.; |
| 34 | |
| 35 | gbooleancxx . . $ gboolean# exportedcxx . . $ _XdpRequest#exported.; |
| 36 | char *idcxx . . $ _XdpRequest#id.; |
| 37 | char *sendercxx . . $ _XdpRequest#sender.; |
| 38 | GMutexcxx . . $ GMutex# mutexcxx . . $ _XdpRequest#mutex.; |
| 39 | XdpAppInfocxx . . $ XdpAppInfo# *app_infocxx . . $ _XdpRequest#app_info.; |
| 40 | XdpContextcxx . . $ XdpContext# *contextcxx . . $ _XdpRequest#context.; |
| 41 | |
| 42 | XdpDbusImplRequestcxx . . $ XdpDbusImplRequest# *impl_requestcxx . . $ _XdpRequest#impl_request.; |
| 43 | } XdpRequestcxx . . $ XdpRequest#; |
| 44 | |
| 45 | struct _XdpRequestClasscxx . . $ _XdpRequestClass# |
| 46 | { |
| 47 | XdpDbusRequestSkeletonClasscxx . . $ XdpDbusRequestSkeletonClass# parent_classcxx . . $ _XdpRequestClass#parent_class.; |
| 48 | }; |
| 49 | |
| 50 | #define XDP_TYPE_REQUESTcxx . . $ `src/xdp-request.h:50:9`! (xdp_request_get_type ()) |
| 51 | G_DECLARE_FINAL_TYPEcxx . . $ glib_autoptr_destroy_XdpRequestClass(5d22bdacc48458e8). (XdpRequest, |
| 52 | xdp_request, |
| 53 | XDP, REQUEST, |
| 54 | XdpDbusRequestSkeleton); |
| 55 | |
| 56 | #define REQUEST_AUTOLOCKcxx . . $ `src/xdp-request.h:56:9`!(request) \ |
| 57 | G_MUTEX_AUTO_LOCKcxx . . $ `<external>/457917468643292165/gthread.h:429:9`! (&request->mutex, G_PASTEcxx . . $ `<external>/12741050725406041920/gmacros.h:903:9`! (request_auto_locker, __LINE__)); |
| 58 | |
| 59 | gbooleancxx . . $ gboolean# xdp_request_init_invocationcxx . . $ xdp_request_init_invocation(cf613f254033935). (GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation, |
| 60 | XdpContextcxx . . $ XdpContext# *context, |
| 61 | XdpAppInfocxx . . $ XdpAppInfo# *app_info, |
| 62 | GErrorcxx . . $ GError# **error); |
| 63 | |
| 64 | XdpRequestcxx . . $ XdpRequest# *xdp_request_from_invocationcxx . . $ xdp_request_from_invocation(9583a51810815010). (GDBusMethodInvocationcxx . . $ GDBusMethodInvocation# *invocation); |
| 65 | |
| 66 | void xdp_request_exportcxx . . $ xdp_request_export(49d11f351a243e17). (XdpRequestcxx . . $ XdpRequest# *request, |
| 67 | GDBusConnectioncxx . . $ GDBusConnection# *connection); |
| 68 | |
| 69 | void xdp_request_unexportcxx . . $ xdp_request_unexport(8bf1d2bcdc4be36d). (XdpRequestcxx . . $ XdpRequest# *request); |
| 70 | |
| 71 | const char *xdp_request_get_object_pathcxx . . $ xdp_request_get_object_path(512cb43e4698c6af). (XdpRequestcxx . . $ XdpRequest# *request); |
| 72 | |
| 73 | void xdp_request_set_impl_requestcxx . . $ xdp_request_set_impl_request(18bd0ab3b325ada4). (XdpRequestcxx . . $ XdpRequest# *request, |
| 74 | XdpDbusImplRequestcxx . . $ XdpDbusImplRequest# *impl_request); |