diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2025-04-16 12:26:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2025-04-16 12:26:41 (GMT) |
commit | f0e32b052f0ea1d9cdc7074b933a5ddcd85ef721 (patch) | |
tree | 90e85b977ab915f50852770c9197914cdadbcfe6 /src/glibext/signal.h | |
parent | fc5e23a8d2fe7457c14ac5e5ceeff2e8d40d7f3a (diff) |
Restore the glue allowing to redirect signals to the main thread.
Diffstat (limited to 'src/glibext/signal.h')
-rw-r--r-- | src/glibext/signal.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/glibext/signal.h b/src/glibext/signal.h index 4f0ab4b..034fa80 100644 --- a/src/glibext/signal.h +++ b/src/glibext/signal.h @@ -2,7 +2,7 @@ /* Chrysalide - Outil d'analyse de fichiers binaires * signal.h - prototypes pour un encadrement des signaux supplémentaire par rapport à celui de la GLib * - * Copyright (C) 2014-2018 Cyrille Bagard + * Copyright (C) 2014-2025 Cyrille Bagard * * This file is part of Chrysalide. * @@ -26,15 +26,18 @@ #include <glib-object.h> -#include <gobject/gclosure.h> -#include <glib/gdataset.h> -#include <glib/glist.h> #include <gobject/gsignal.h> +/* Informations concernant une diffusion de signal */ +typedef struct _gsignal_wrapper_info_t gsignal_wrapper_info_t; + /* Reproduit le comportement de la fonction g_signal_connect(). */ -gulong _g_signal_connect_to_main(gpointer, const gchar *, GCallback, gpointer, GClosureMarshal, GConnectFlags); +gsignal_wrapper_info_t *_g_signal_connect_to_main(gpointer, const gchar *, GCallback, gpointer, GClosureMarshal, GConnectFlags); + +/* Déconnecte un signal redirigé vers le contexte principal. */ +void g_signal_disconnect_from_main(gsignal_wrapper_info_t *); #define g_signal_connect_to_main(instance, signal, handler, data, marshal) \ |