| 1 | /* GIO - GLib Input, Output and Streaming Library | 
| 2 |  * | 
| 3 |  * Copyright © 2021 Endless OS Foundation, LLC | 
| 4 |  * | 
| 5 |  * This library is free software; you can redistribute it and/or | 
| 6 |  * modify it under the terms of the GNU Lesser General Public | 
| 7 |  * License as published by the Free Software Foundation; either | 
| 8 |  * version 2.1 of the License, or (at your option) any later version. | 
| 9 |  * | 
| 10 |  * This library 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 GNU | 
| 13 |  * Lesser General Public License for more details. | 
| 14 |  * | 
| 15 |  * You should have received a copy of the GNU Lesser General | 
| 16 |  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>. | 
| 17 |  * | 
| 18 |  * SPDX-License-Identifier: LGPL-2.1-or-later | 
| 19 |  */ | 
| 20 |  | 
| 21 | #ifndef __G_DEBUG_CONTROLLER_DBUS_H__ | 
| 22 | #define __G_DEBUG_CONTROLLER_DBUS_H__ | 
| 23 |  | 
| 24 | #include <glib.h> | 
| 25 | #include <glib-object.h> | 
| 26 |  | 
| 27 | G_BEGIN_DECLS | 
| 28 |  | 
| 29 | /** | 
| 30 |  * GDebugControllerDBus: | 
| 31 |  * | 
| 32 |  * #GDebugControllerDBus is an implementation of #GDebugController over D-Bus. | 
| 33 |  * | 
| 34 |  * Since: 2.72 | 
| 35 |  */ | 
| 36 | #define G_TYPE_DEBUG_CONTROLLER_DBUS (g_debug_controller_dbus_get_type ()) | 
| 37 | GLIB_AVAILABLE_IN_2_72 | 
| 38 | G_DECLARE_DERIVABLE_TYPE (GDebugControllerDBus, g_debug_controller_dbus, G, DEBUG_CONTROLLER_DBUS, GObject) | 
| 39 |  | 
| 40 | /** | 
| 41 |  * GDebugControllerDBusClass: | 
| 42 |  * @parent_class: The parent class. | 
| 43 |  * @authorize: Default handler for the #GDebugControllerDBus::authorize signal. | 
| 44 |  * | 
| 45 |  * The virtual function table for #GDebugControllerDBus. | 
| 46 |  * | 
| 47 |  * Since: 2.72 | 
| 48 |  */ | 
| 49 | struct _GDebugControllerDBusClass | 
| 50 | { | 
| 51 |   GObjectClass parent_class; | 
| 52 |  | 
| 53 |   gboolean (*authorize)  (GDebugControllerDBus  *controller, | 
| 54 |                           GDBusMethodInvocation *invocation); | 
| 55 |  | 
| 56 |   gpointer padding[12]; | 
| 57 | }; | 
| 58 |  | 
| 59 | GLIB_AVAILABLE_IN_2_72 | 
| 60 | GDebugControllerDBus *g_debug_controller_dbus_new (GDBusConnection  *connection, | 
| 61 |                                                    GCancellable     *cancellable, | 
| 62 |                                                    GError          **error); | 
| 63 |  | 
| 64 | GLIB_AVAILABLE_IN_2_72 | 
| 65 | void g_debug_controller_dbus_stop (GDebugControllerDBus *self); | 
| 66 |  | 
| 67 | G_END_DECLS | 
| 68 |  | 
| 69 | #endif /* __G_DEBUG_CONTROLLER_DBUS_H__ */ | 
| 70 |  |