| 1 | /* launch-context.c |
| 2 | * |
| 3 | * Copyright 2024 Red Hat, Inc. |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | * |
| 18 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 19 | */ |
| 20 | |
| 21 | #include "xdp-app-launch-context.h"cxx . . $ `<file>/src/xdp-app-launch-context.h`/ |
| 22 | |
| 23 | struct _XdpAppLaunchContextcxx . . $ _XdpAppLaunchContext# |
| 24 | { |
| 25 | GAppLaunchContextcxx . . $ GAppLaunchContext# parent_instancecxx . . $ _XdpAppLaunchContext#parent_instance.; |
| 26 | |
| 27 | char *tokencxx . . $ _XdpAppLaunchContext#token.; |
| 28 | }; |
| 29 | |
| 30 | G_DEFINE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1834:9`! (XdpAppLaunchContext, |
| 31 | xdp_app_launch_context, |
| 32 | G_TYPE_APP_LAUNCH_CONTEXTcxx . . $ `<external>/6793221688627496808/gappinfo.h:39:9`!) |
| 33 | |
| 34 | void |
| 35 | xdp_app_launch_context_set_activation_tokencxx . . $ xdp_app_launch_context_set_activation_token(e948952cc5d8af89). (XdpAppLaunchContextcxx . . $ XdpAppLaunchContext# *self, |
| 36 | const char *token) |
| 37 | { |
| 38 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&self->token, g_free); |
| 39 | self->tokencxx . . $ _XdpAppLaunchContext#token. = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (token); |
| 40 | } |
| 41 | |
| 42 | static char * |
| 43 | xdp_app_launch_context_get_startup_notify_idcxx . . $ xdp_app_launch_context_get_startup_notify_id(6d49195b24df9264). (GAppLaunchContextcxx . . $ GAppLaunchContext# *context, |
| 44 | GAppInfocxx . . $ GAppInfo# *info, |
| 45 | GListcxx . . $ GList# *files) |
| 46 | { |
| 47 | XdpAppLaunchContextcxx . . $ XdpAppLaunchContext# *self = XDP_APP_LAUNCH_CONTEXTcxx . . $ XDP_APP_LAUNCH_CONTEXT(d7cc9cd6668c1fbd). (context); |
| 48 | |
| 49 | return g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`! (self->token); |
| 50 | } |
| 51 | |
| 52 | static void |
| 53 | xdp_app_launch_context_finalizecxx . . $ xdp_app_launch_context_finalize(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 54 | { |
| 55 | XdpAppLaunchContextcxx . . $ XdpAppLaunchContext# *self = XDP_APP_LAUNCH_CONTEXTcxx . . $ XDP_APP_LAUNCH_CONTEXT(d7cc9cd6668c1fbd). (object); |
| 56 | |
| 57 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&self->token, g_free); |
| 58 | |
| 59 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (xdp_app_launch_context_parent_class)->finalizecxx . . $ _GObjectClass#finalize. (object); |
| 60 | } |
| 61 | |
| 62 | static void |
| 63 | xdp_app_launch_context_class_initcxx . . $ xdp_app_launch_context_class_init(6a257c48037fee70). (XdpAppLaunchContextClasscxx . . $ XdpAppLaunchContextClass# *klass) |
| 64 | { |
| 65 | GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (klass); |
| 66 | GAppLaunchContextClasscxx . . $ GAppLaunchContextClass# *g_klass = G_APP_LAUNCH_CONTEXT_CLASScxx . . $ `<external>/6793221688627496808/gappinfo.h:41:9`! (klass); |
| 67 | |
| 68 | object_class->finalizecxx . . $ _GObjectClass#finalize. = xdp_app_launch_context_finalizecxx . . $ xdp_app_launch_context_finalize(6087475fa43034d3).; |
| 69 | g_klass->get_startup_notify_idcxx . . $ _GAppLaunchContextClass#get_startup_notify_id. = xdp_app_launch_context_get_startup_notify_idcxx . . $ xdp_app_launch_context_get_startup_notify_id(6d49195b24df9264).; |
| 70 | } |
| 71 | |
| 72 | static void |
| 73 | xdp_app_launch_context_initcxx . . $ xdp_app_launch_context_init(67216c45a4d314b6). (XdpAppLaunchContextcxx . . $ XdpAppLaunchContext# *self) |
| 74 | { |
| 75 | } |
| 76 | |
| 77 | XdpAppLaunchContextcxx . . $ XdpAppLaunchContext# * |
| 78 | xdp_app_launch_context_newcxx . . $ xdp_app_launch_context_new(76568252a1f361cc). (void) |
| 79 | { |
| 80 | return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (XDP_TYPE_APP_LAUNCH_CONTEXTcxx . . $ `src/xdp-app-launch-context.h:28:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 81 | } |