| 1 | /* GObject - GLib Type, Object, Parameter and Signal Library | 
| 2 |  * | 
| 3 |  * Copyright (C) 2015-2022 Christian Hergert <christian@hergert.me> | 
| 4 |  * Copyright (C) 2015 Garrett Regier <garrettregier@gmail.com> | 
| 5 |  * | 
| 6 |  * This library 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 | 
| 17 |  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>. | 
| 18 |  * | 
| 19 |  * SPDX-License-Identifier: LGPL-2.1-or-later | 
| 20 |  */ | 
| 21 |  | 
| 22 | #ifndef __G_SIGNAL_GROUP_H__ | 
| 23 | #define __G_SIGNAL_GROUP_H__ | 
| 24 |  | 
| 25 | #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION) | 
| 26 | #error "Only <glib-object.h> can be included directly." | 
| 27 | #endif | 
| 28 |  | 
| 29 | #include <glib.h> | 
| 30 | #include <gobject/gobject.h> | 
| 31 | #include <gobject/gsignal.h> | 
| 32 |  | 
| 33 | G_BEGIN_DECLS | 
| 34 |  | 
| 35 | #define G_SIGNAL_GROUP(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_SIGNAL_GROUP, GSignalGroup)) | 
| 36 | #define G_IS_SIGNAL_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_SIGNAL_GROUP)) | 
| 37 | #define G_TYPE_SIGNAL_GROUP    (g_signal_group_get_type()) | 
| 38 |  | 
| 39 | /** | 
| 40 |  * GSignalGroup: | 
| 41 |  * | 
| 42 |  * #GSignalGroup is an opaque structure whose members | 
| 43 |  * cannot be accessed directly. | 
| 44 |  * | 
| 45 |  * Since: 2.72 | 
| 46 |  */ | 
| 47 | typedef struct _GSignalGroup GSignalGroup; | 
| 48 |  | 
| 49 | GLIB_AVAILABLE_IN_2_72 | 
| 50 | GType         g_signal_group_get_type        (void) G_GNUC_CONST; | 
| 51 | GLIB_AVAILABLE_IN_2_72 | 
| 52 | GSignalGroup *g_signal_group_new             (GType           target_type); | 
| 53 | GLIB_AVAILABLE_IN_2_72 | 
| 54 | void          g_signal_group_set_target      (GSignalGroup   *self, | 
| 55 |                                               gpointer        target); | 
| 56 | GLIB_AVAILABLE_IN_2_72 | 
| 57 | gpointer      g_signal_group_dup_target      (GSignalGroup   *self); | 
| 58 | GLIB_AVAILABLE_IN_2_72 | 
| 59 | void          g_signal_group_block           (GSignalGroup   *self); | 
| 60 | GLIB_AVAILABLE_IN_2_72 | 
| 61 | void          g_signal_group_unblock         (GSignalGroup   *self); | 
| 62 | GLIB_AVAILABLE_IN_2_72 | 
| 63 | void          g_signal_group_connect_object  (GSignalGroup   *self, | 
| 64 |                                               const gchar    *detailed_signal, | 
| 65 |                                               GCallback       c_handler, | 
| 66 |                                               gpointer        object, | 
| 67 |                                               GConnectFlags   flags); | 
| 68 | GLIB_AVAILABLE_IN_2_72 | 
| 69 | void          g_signal_group_connect_data    (GSignalGroup   *self, | 
| 70 |                                               const gchar    *detailed_signal, | 
| 71 |                                               GCallback       c_handler, | 
| 72 |                                               gpointer        data, | 
| 73 |                                               GClosureNotify  notify, | 
| 74 |                                               GConnectFlags   flags); | 
| 75 | GLIB_AVAILABLE_IN_2_72 | 
| 76 | void          g_signal_group_connect         (GSignalGroup   *self, | 
| 77 |                                               const gchar    *detailed_signal, | 
| 78 |                                               GCallback       c_handler, | 
| 79 |                                               gpointer        data); | 
| 80 | GLIB_AVAILABLE_IN_2_72 | 
| 81 | void          g_signal_group_connect_after   (GSignalGroup   *self, | 
| 82 |                                               const gchar    *detailed_signal, | 
| 83 |                                               GCallback       c_handler, | 
| 84 |                                               gpointer        data); | 
| 85 | GLIB_AVAILABLE_IN_2_72 | 
| 86 | void          g_signal_group_connect_swapped (GSignalGroup   *self, | 
| 87 |                                               const gchar    *detailed_signal, | 
| 88 |                                               GCallback       c_handler, | 
| 89 |                                               gpointer        data); | 
| 90 |  | 
| 91 | G_END_DECLS | 
| 92 |  | 
| 93 | #endif /* __G_SIGNAL_GROUP_H__ */ | 
| 94 |  |