Eradicate links and xrefs
[platform/upstream/glib.git] / gobject / gsignal.h
1 /* GObject - GLib Type, Object, Parameter and Signal Library
2  * Copyright (C) 2000-2001 Red Hat, Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General
15  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
16  */
17 #ifndef __G_SIGNAL_H__
18 #define __G_SIGNAL_H__
19
20 #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
21 #error "Only <glib-object.h> can be included directly."
22 #endif
23
24 #include        <gobject/gclosure.h>
25 #include        <gobject/gvalue.h>
26 #include        <gobject/gparam.h>
27 #include        <gobject/gmarshal.h>
28
29 G_BEGIN_DECLS
30
31 /* --- typedefs --- */
32 typedef struct _GSignalQuery             GSignalQuery;
33 typedef struct _GSignalInvocationHint    GSignalInvocationHint;
34 /**
35  * GSignalCMarshaller:
36  * 
37  * This is the signature of marshaller functions, required to marshall
38  * arrays of parameter values to signal emissions into C language callback
39  * invocations. It is merely an alias to #GClosureMarshal since the #GClosure
40  * mechanism takes over responsibility of actual function invocation for the
41  * signal system.
42  */
43 typedef GClosureMarshal                  GSignalCMarshaller;
44 /**
45  * GSignalCVaMarshaller:
46  * 
47  * This is the signature of va_list marshaller functions, an optional
48  * marshaller that can be used in some situations to avoid
49  * marshalling the signal argument into GValues.
50  */
51 typedef GVaClosureMarshal                GSignalCVaMarshaller;
52 /**
53  * GSignalEmissionHook:
54  * @ihint: Signal invocation hint, see #GSignalInvocationHint.
55  * @n_param_values: the number of parameters to the function, including
56  *  the instance on which the signal was emitted.
57  * @param_values: (array length=n_param_values): the instance on which
58  *  the signal was emitted, followed by the parameters of the emission.
59  * @data: user data associated with the hook.
60  * 
61  * A simple function pointer to get invoked when the signal is emitted. This 
62  * allows you to tie a hook to the signal type, so that it will trap all 
63  * emissions of that signal, from any object.
64  * 
65  * You may not attach these to signals created with the #G_SIGNAL_NO_HOOKS flag.
66  * 
67  * Returns: whether it wants to stay connected. If it returns %FALSE, the signal 
68  *  hook is disconnected (and destroyed).
69  */
70 typedef gboolean (*GSignalEmissionHook) (GSignalInvocationHint *ihint,
71                                          guint                  n_param_values,
72                                          const GValue          *param_values,
73                                          gpointer               data);
74 /**
75  * GSignalAccumulator:
76  * @ihint: Signal invocation hint, see #GSignalInvocationHint.
77  * @return_accu: Accumulator to collect callback return values in, this
78  *  is the return value of the current signal emission.
79  * @handler_return: A #GValue holding the return value of the signal handler.
80  * @data: Callback data that was specified when creating the signal.
81  * 
82  * The signal accumulator is a special callback function that can be used
83  * to collect return values of the various callbacks that are called
84  * during a signal emission. The signal accumulator is specified at signal
85  * creation time, if it is left %NULL, no accumulation of callback return
86  * values is performed. The return value of signal emissions is then the
87  * value returned by the last callback.
88  * 
89  * Returns: The accumulator function returns whether the signal emission
90  *  should be aborted. Returning %FALSE means to abort the
91  *  current emission and %TRUE is returned for continuation.
92  */
93 typedef gboolean (*GSignalAccumulator)  (GSignalInvocationHint *ihint,
94                                          GValue                *return_accu,
95                                          const GValue          *handler_return,
96                                          gpointer               data);
97
98
99 /* --- run, match and connect types --- */
100 /**
101  * GSignalFlags:
102  * @G_SIGNAL_RUN_FIRST: Invoke the object method handler in the first emission stage.
103  * @G_SIGNAL_RUN_LAST: Invoke the object method handler in the third emission stage.
104  * @G_SIGNAL_RUN_CLEANUP: Invoke the object method handler in the last emission stage.
105  * @G_SIGNAL_NO_RECURSE: Signals being emitted for an object while currently being in
106  *  emission for this very object will not be emitted recursively,
107  *  but instead cause the first emission to be restarted.
108  * @G_SIGNAL_DETAILED: This signal supports "::detail" appendices to the signal name
109  *  upon handler connections and emissions.
110  * @G_SIGNAL_ACTION: Action signals are signals that may freely be emitted on alive
111  *  objects from user code via g_signal_emit() and friends, without
112  *  the need of being embedded into extra code that performs pre or
113  *  post emission adjustments on the object. They can also be thought
114  *  of as object methods which can be called generically by 
115  *  third-party code.
116  * @G_SIGNAL_NO_HOOKS: No emissions hooks are supported for this signal.
117  * @G_SIGNAL_MUST_COLLECT: Varargs signal emission will always collect the
118  *   arguments, even if there are no signal handlers connected.  Since 2.30.
119  * @G_SIGNAL_DEPRECATED: The signal is deprecated and will be removed
120  *   in a future version. A warning will be generated if it is connected while
121  *   running with G_ENABLE_DIAGNOSTIC=1.  Since 2.32.
122  * 
123  * The signal flags are used to specify a signal's behaviour, the overall
124  * signal description outlines how especially the RUN flags control the
125  * stages of a signal emission.
126  */
127 typedef enum
128 {
129   G_SIGNAL_RUN_FIRST    = 1 << 0,
130   G_SIGNAL_RUN_LAST     = 1 << 1,
131   G_SIGNAL_RUN_CLEANUP  = 1 << 2,
132   G_SIGNAL_NO_RECURSE   = 1 << 3,
133   G_SIGNAL_DETAILED     = 1 << 4,
134   G_SIGNAL_ACTION       = 1 << 5,
135   G_SIGNAL_NO_HOOKS     = 1 << 6,
136   G_SIGNAL_MUST_COLLECT = 1 << 7,
137   G_SIGNAL_DEPRECATED   = 1 << 8
138 } GSignalFlags;
139 /**
140  * G_SIGNAL_FLAGS_MASK:
141  * 
142  * A mask for all #GSignalFlags bits.
143  */
144 #define G_SIGNAL_FLAGS_MASK  0x1ff
145 /**
146  * GConnectFlags:
147  * @G_CONNECT_AFTER: whether the handler should be called before or after the 
148  *  default handler of the signal.
149  * @G_CONNECT_SWAPPED: whether the instance and data should be swapped when
150  *  calling the handler.
151  * 
152  * The connection flags are used to specify the behaviour of a signal's 
153  * connection.
154  */
155 typedef enum
156 {
157   G_CONNECT_AFTER       = 1 << 0,
158   G_CONNECT_SWAPPED     = 1 << 1
159 } GConnectFlags;
160 /**
161  * GSignalMatchType:
162  * @G_SIGNAL_MATCH_ID: The signal id must be equal.
163  * @G_SIGNAL_MATCH_DETAIL: The signal detail be equal.
164  * @G_SIGNAL_MATCH_CLOSURE: The closure must be the same.
165  * @G_SIGNAL_MATCH_FUNC: The C closure callback must be the same.
166  * @G_SIGNAL_MATCH_DATA: The closure data must be the same.
167  * @G_SIGNAL_MATCH_UNBLOCKED: Only unblocked signals may matched.
168  * 
169  * The match types specify what g_signal_handlers_block_matched(),
170  * g_signal_handlers_unblock_matched() and g_signal_handlers_disconnect_matched()
171  * match signals by.
172  */
173 typedef enum
174 {
175   G_SIGNAL_MATCH_ID        = 1 << 0,
176   G_SIGNAL_MATCH_DETAIL    = 1 << 1,
177   G_SIGNAL_MATCH_CLOSURE   = 1 << 2,
178   G_SIGNAL_MATCH_FUNC      = 1 << 3,
179   G_SIGNAL_MATCH_DATA      = 1 << 4,
180   G_SIGNAL_MATCH_UNBLOCKED = 1 << 5
181 } GSignalMatchType;
182 /**
183  * G_SIGNAL_MATCH_MASK:
184  * 
185  * A mask for all #GSignalMatchType bits.
186  */
187 #define G_SIGNAL_MATCH_MASK  0x3f
188 /**
189  * G_SIGNAL_TYPE_STATIC_SCOPE:
190  * 
191  * This macro flags signal argument types for which the signal system may 
192  * assume that instances thereof remain persistent across all signal emissions
193  * they are used in. This is only useful for non ref-counted, value-copy types.
194  * 
195  * To flag a signal argument in this way, add 
196  * <literal>| G_SIGNAL_TYPE_STATIC_SCOPE</literal> to the corresponding argument
197  * of g_signal_new().
198  * |[
199  * g_signal_new ("size_request",
200  *   G_TYPE_FROM_CLASS (gobject_class),
201  *       G_SIGNAL_RUN_FIRST,
202  *       G_STRUCT_OFFSET (GtkWidgetClass, size_request),
203  *       NULL, NULL,
204  *       _gtk_marshal_VOID__BOXED,
205  *       G_TYPE_NONE, 1,
206  *       GTK_TYPE_REQUISITION | G_SIGNAL_TYPE_STATIC_SCOPE);
207  * ]|
208  */
209 #define G_SIGNAL_TYPE_STATIC_SCOPE (G_TYPE_FLAG_RESERVED_ID_BIT)
210
211
212 /* --- signal information --- */
213 /**
214  * GSignalInvocationHint:
215  * @signal_id: The signal id of the signal invoking the callback
216  * @detail: The detail passed on for this emission
217  * @run_type: The stage the signal emission is currently in, this
218  *  field will contain one of %G_SIGNAL_RUN_FIRST,
219  *  %G_SIGNAL_RUN_LAST or %G_SIGNAL_RUN_CLEANUP.
220  * 
221  * The #GSignalInvocationHint structure is used to pass on additional information
222  * to callbacks during a signal emission.
223  */
224 struct _GSignalInvocationHint
225 {
226   guint         signal_id;
227   GQuark        detail;
228   GSignalFlags  run_type;
229 };
230 /**
231  * GSignalQuery:
232  * @signal_id: The signal id of the signal being queried, or 0 if the
233  *  signal to be queried was unknown.
234  * @signal_name: The signal name.
235  * @itype: The interface/instance type that this signal can be emitted for.
236  * @signal_flags: The signal flags as passed in to g_signal_new().
237  * @return_type: The return type for user callbacks.
238  * @n_params: The number of parameters that user callbacks take.
239  * @param_types: (array length=n_params): The individual parameter types for
240  *  user callbacks, note that the effective callback signature is:
241  *  <programlisting>
242  *  @return_type callback (#gpointer     data1,
243  *  [param_types param_names,]
244  *  gpointer     data2);
245  *  </programlisting>
246  * 
247  * A structure holding in-depth information for a specific signal. It is
248  * filled in by the g_signal_query() function.
249  */
250 struct _GSignalQuery
251 {
252   guint         signal_id;
253   const gchar  *signal_name;
254   GType         itype;
255   GSignalFlags  signal_flags;
256   GType         return_type; /* mangled with G_SIGNAL_TYPE_STATIC_SCOPE flag */
257   guint         n_params;
258   const GType  *param_types; /* mangled with G_SIGNAL_TYPE_STATIC_SCOPE flag */
259 };
260
261
262 /* --- signals --- */
263 GLIB_AVAILABLE_IN_ALL
264 guint                 g_signal_newv         (const gchar        *signal_name,
265                                              GType               itype,
266                                              GSignalFlags        signal_flags,
267                                              GClosure           *class_closure,
268                                              GSignalAccumulator  accumulator,
269                                              gpointer            accu_data,
270                                              GSignalCMarshaller  c_marshaller,
271                                              GType               return_type,
272                                              guint               n_params,
273                                              GType              *param_types);
274 GLIB_AVAILABLE_IN_ALL
275 guint                 g_signal_new_valist   (const gchar        *signal_name,
276                                              GType               itype,
277                                              GSignalFlags        signal_flags,
278                                              GClosure           *class_closure,
279                                              GSignalAccumulator  accumulator,
280                                              gpointer            accu_data,
281                                              GSignalCMarshaller  c_marshaller,
282                                              GType               return_type,
283                                              guint               n_params,
284                                              va_list             args);
285 GLIB_AVAILABLE_IN_ALL
286 guint                 g_signal_new          (const gchar        *signal_name,
287                                              GType               itype,
288                                              GSignalFlags        signal_flags,
289                                              guint               class_offset,
290                                              GSignalAccumulator  accumulator,
291                                              gpointer            accu_data,
292                                              GSignalCMarshaller  c_marshaller,
293                                              GType               return_type,
294                                              guint               n_params,
295                                              ...);
296 GLIB_AVAILABLE_IN_ALL
297 guint            g_signal_new_class_handler (const gchar        *signal_name,
298                                              GType               itype,
299                                              GSignalFlags        signal_flags,
300                                              GCallback           class_handler,
301                                              GSignalAccumulator  accumulator,
302                                              gpointer            accu_data,
303                                              GSignalCMarshaller  c_marshaller,
304                                              GType               return_type,
305                                              guint               n_params,
306                                              ...);
307 GLIB_AVAILABLE_IN_ALL
308 void             g_signal_set_va_marshaller (guint              signal_id,
309                                              GType              instance_type,
310                                              GSignalCVaMarshaller va_marshaller);
311
312 GLIB_AVAILABLE_IN_ALL
313 void                  g_signal_emitv        (const GValue       *instance_and_params,
314                                              guint               signal_id,
315                                              GQuark              detail,
316                                              GValue             *return_value);
317 GLIB_AVAILABLE_IN_ALL
318 void                  g_signal_emit_valist  (gpointer            instance,
319                                              guint               signal_id,
320                                              GQuark              detail,
321                                              va_list             var_args);
322 GLIB_AVAILABLE_IN_ALL
323 void                  g_signal_emit         (gpointer            instance,
324                                              guint               signal_id,
325                                              GQuark              detail,
326                                              ...);
327 GLIB_AVAILABLE_IN_ALL
328 void                  g_signal_emit_by_name (gpointer            instance,
329                                              const gchar        *detailed_signal,
330                                              ...);
331 GLIB_AVAILABLE_IN_ALL
332 guint                 g_signal_lookup       (const gchar        *name,
333                                              GType               itype);
334 GLIB_AVAILABLE_IN_ALL
335 const gchar *         g_signal_name         (guint               signal_id);
336 GLIB_AVAILABLE_IN_ALL
337 void                  g_signal_query        (guint               signal_id,
338                                              GSignalQuery       *query);
339 GLIB_AVAILABLE_IN_ALL
340 guint*                g_signal_list_ids     (GType               itype,
341                                              guint              *n_ids);
342 GLIB_AVAILABLE_IN_ALL
343 gboolean              g_signal_parse_name   (const gchar        *detailed_signal,
344                                              GType               itype,
345                                              guint              *signal_id_p,
346                                              GQuark             *detail_p,
347                                              gboolean            force_detail_quark);
348 GLIB_AVAILABLE_IN_ALL
349 GSignalInvocationHint* g_signal_get_invocation_hint (gpointer    instance);
350
351
352 /* --- signal emissions --- */
353 GLIB_AVAILABLE_IN_ALL
354 void    g_signal_stop_emission              (gpointer             instance,
355                                              guint                signal_id,
356                                              GQuark               detail);
357 GLIB_AVAILABLE_IN_ALL
358 void    g_signal_stop_emission_by_name      (gpointer             instance,
359                                              const gchar         *detailed_signal);
360 GLIB_AVAILABLE_IN_ALL
361 gulong  g_signal_add_emission_hook          (guint                signal_id,
362                                              GQuark               detail,
363                                              GSignalEmissionHook  hook_func,
364                                              gpointer             hook_data,
365                                              GDestroyNotify       data_destroy);
366 GLIB_AVAILABLE_IN_ALL
367 void    g_signal_remove_emission_hook       (guint                signal_id,
368                                              gulong               hook_id);
369
370
371 /* --- signal handlers --- */
372 GLIB_AVAILABLE_IN_ALL
373 gboolean g_signal_has_handler_pending         (gpointer           instance,
374                                                guint              signal_id,
375                                                GQuark             detail,
376                                                gboolean           may_be_blocked);
377 GLIB_AVAILABLE_IN_ALL
378 gulong   g_signal_connect_closure_by_id       (gpointer           instance,
379                                                guint              signal_id,
380                                                GQuark             detail,
381                                                GClosure          *closure,
382                                                gboolean           after);
383 GLIB_AVAILABLE_IN_ALL
384 gulong   g_signal_connect_closure             (gpointer           instance,
385                                                const gchar       *detailed_signal,
386                                                GClosure          *closure,
387                                                gboolean           after);
388 GLIB_AVAILABLE_IN_ALL
389 gulong   g_signal_connect_data                (gpointer           instance,
390                                                const gchar       *detailed_signal,
391                                                GCallback          c_handler,
392                                                gpointer           data,
393                                                GClosureNotify     destroy_data,
394                                                GConnectFlags      connect_flags);
395 GLIB_AVAILABLE_IN_ALL
396 void     g_signal_handler_block               (gpointer           instance,
397                                                gulong             handler_id);
398 GLIB_AVAILABLE_IN_ALL
399 void     g_signal_handler_unblock             (gpointer           instance,
400                                                gulong             handler_id);
401 GLIB_AVAILABLE_IN_ALL
402 void     g_signal_handler_disconnect          (gpointer           instance,
403                                                gulong             handler_id);
404 GLIB_AVAILABLE_IN_ALL
405 gboolean g_signal_handler_is_connected        (gpointer           instance,
406                                                gulong             handler_id);
407 GLIB_AVAILABLE_IN_ALL
408 gulong   g_signal_handler_find                (gpointer           instance,
409                                                GSignalMatchType   mask,
410                                                guint              signal_id,
411                                                GQuark             detail,
412                                                GClosure          *closure,
413                                                gpointer           func,
414                                                gpointer           data);
415 GLIB_AVAILABLE_IN_ALL
416 guint    g_signal_handlers_block_matched      (gpointer           instance,
417                                                GSignalMatchType   mask,
418                                                guint              signal_id,
419                                                GQuark             detail,
420                                                GClosure          *closure,
421                                                gpointer           func,
422                                                gpointer           data);
423 GLIB_AVAILABLE_IN_ALL
424 guint    g_signal_handlers_unblock_matched    (gpointer           instance,
425                                                GSignalMatchType   mask,
426                                                guint              signal_id,
427                                                GQuark             detail,
428                                                GClosure          *closure,
429                                                gpointer           func,
430                                                gpointer           data);
431 GLIB_AVAILABLE_IN_ALL
432 guint    g_signal_handlers_disconnect_matched (gpointer           instance,
433                                                GSignalMatchType   mask,
434                                                guint              signal_id,
435                                                GQuark             detail,
436                                                GClosure          *closure,
437                                                gpointer           func,
438                                                gpointer           data);
439
440
441 /* --- overriding and chaining --- */
442 GLIB_AVAILABLE_IN_ALL
443 void    g_signal_override_class_closure       (guint              signal_id,
444                                                GType              instance_type,
445                                                GClosure          *class_closure);
446 GLIB_AVAILABLE_IN_ALL
447 void    g_signal_override_class_handler       (const gchar       *signal_name,
448                                                GType              instance_type,
449                                                GCallback          class_handler);
450 GLIB_AVAILABLE_IN_ALL
451 void    g_signal_chain_from_overridden        (const GValue      *instance_and_params,
452                                                GValue            *return_value);
453 GLIB_AVAILABLE_IN_ALL
454 void   g_signal_chain_from_overridden_handler (gpointer           instance,
455                                                ...);
456
457
458 /* --- convenience --- */
459 /**
460  * g_signal_connect:
461  * @instance: the instance to connect to.
462  * @detailed_signal: a string of the form "signal-name::detail".
463  * @c_handler: the #GCallback to connect.
464  * @data: data to pass to @c_handler calls.
465  * 
466  * Connects a #GCallback function to a signal for a particular object.
467  * 
468  * The handler will be called before the default handler of the signal.
469  * 
470  * Returns: the handler id (always greater than 0 for successful connections)
471  */
472 #define g_signal_connect(instance, detailed_signal, c_handler, data) \
473     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
474 /**
475  * g_signal_connect_after:
476  * @instance: the instance to connect to.
477  * @detailed_signal: a string of the form "signal-name::detail".
478  * @c_handler: the #GCallback to connect.
479  * @data: data to pass to @c_handler calls.
480  * 
481  * Connects a #GCallback function to a signal for a particular object.
482  * 
483  * The handler will be called after the default handler of the signal.
484  * 
485  * Returns: the handler id (always greater than 0 for successful connections)
486  */
487 #define g_signal_connect_after(instance, detailed_signal, c_handler, data) \
488     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_AFTER)
489 /**
490  * g_signal_connect_swapped:
491  * @instance: the instance to connect to.
492  * @detailed_signal: a string of the form "signal-name::detail".
493  * @c_handler: the #GCallback to connect.
494  * @data: data to pass to @c_handler calls.
495  * 
496  * Connects a #GCallback function to a signal for a particular object.
497  * 
498  * The instance on which the signal is emitted and @data will be swapped when 
499  * calling the handler.
500  * 
501  * Returns: the handler id (always greater than 0 for successful connections)
502  */
503 #define g_signal_connect_swapped(instance, detailed_signal, c_handler, data) \
504     g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED)
505 /**
506  * g_signal_handlers_disconnect_by_func:
507  * @instance: The instance to remove handlers from.
508  * @func: The C closure callback of the handlers (useless for non-C closures).
509  * @data: The closure data of the handlers' closures.
510  * 
511  * Disconnects all handlers on an instance that match @func and @data.
512  * 
513  * Returns: The number of handlers that matched.
514  */
515 #define g_signal_handlers_disconnect_by_func(instance, func, data)                                              \
516     g_signal_handlers_disconnect_matched ((instance),                                                           \
517                                           (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA),       \
518                                           0, 0, NULL, (func), (data))
519
520 /**
521  * g_signal_handlers_disconnect_by_data:
522  * @instance: The instance to remove handlers from
523  * @data: the closure data of the handlers' closures
524  *
525  * Disconnects all handlers on an instance that match @data.
526  *
527  * Returns: The number of handlers that matched.
528  *
529  * Since: 2.32
530  */
531 #define g_signal_handlers_disconnect_by_data(instance, data) \
532   g_signal_handlers_disconnect_matched ((instance), G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, (data))
533
534 /**
535  * g_signal_handlers_block_by_func:
536  * @instance: The instance to block handlers from.
537  * @func: The C closure callback of the handlers (useless for non-C closures).
538  * @data: The closure data of the handlers' closures.
539  * 
540  * Blocks all handlers on an instance that match @func and @data.
541  * 
542  * Returns: The number of handlers that matched.
543  */
544 #define g_signal_handlers_block_by_func(instance, func, data)                                                   \
545     g_signal_handlers_block_matched      ((instance),                                                           \
546                                           (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA),       \
547                                           0, 0, NULL, (func), (data))
548 /**
549  * g_signal_handlers_unblock_by_func:
550  * @instance: The instance to unblock handlers from.
551  * @func: The C closure callback of the handlers (useless for non-C closures).
552  * @data: The closure data of the handlers' closures.
553  * 
554  * Unblocks all handlers on an instance that match @func and @data.
555  * 
556  * Returns: The number of handlers that matched.
557  */
558 #define g_signal_handlers_unblock_by_func(instance, func, data)                                                 \
559     g_signal_handlers_unblock_matched    ((instance),                                                           \
560                                           (GSignalMatchType) (G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA),       \
561                                           0, 0, NULL, (func), (data))
562
563
564 GLIB_AVAILABLE_IN_ALL
565 gboolean g_signal_accumulator_true_handled (GSignalInvocationHint *ihint,
566                                             GValue                *return_accu,
567                                             const GValue          *handler_return,
568                                             gpointer               dummy);
569
570 GLIB_AVAILABLE_IN_ALL
571 gboolean g_signal_accumulator_first_wins   (GSignalInvocationHint *ihint,
572                                             GValue                *return_accu,
573                                             const GValue          *handler_return,
574                                             gpointer               dummy);
575
576 /*< private >*/
577 GLIB_AVAILABLE_IN_ALL
578 void     g_signal_handlers_destroy            (gpointer           instance);
579 void     _g_signals_destroy                   (GType              itype);
580
581 G_END_DECLS
582
583 #endif /* __G_SIGNAL_H__ */