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