diff options
Diffstat (limited to 'src/core/signals.h')
-rw-r--r-- | src/core/signals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/signals.h b/src/core/signals.h index 613aa245..ad684ab5 100644 --- a/src/core/signals.h +++ b/src/core/signals.h @@ -6,6 +6,10 @@ typedef void (*SIGNAL_FUNC) (gconstpointer, gconstpointer, gconstpointer, gconst void signals_init(void); void signals_deinit(void); +/* use this macro to convert the signal name to ID */ +#define signal_get_uniq_id(signal) \ + module_get_uniq_id_str("signals", signal) + /* bind a signal */ void signal_add_to(const char *module, int pos, const char *signal, SIGNAL_FUNC func); #define signal_add(a, b) signal_add_to(MODULE_NAME, 1, a, b) |