mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02:00
added signal_add_to_id()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@963 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1c9f45b4a4
commit
5f941b8fa6
2 changed files with 23 additions and 10 deletions
|
|
@ -1,7 +1,9 @@
|
|||
#ifndef __SIGNAL_H
|
||||
#define __SIGNAL_H
|
||||
|
||||
typedef void (*SIGNAL_FUNC) (gconstpointer, gconstpointer, gconstpointer, gconstpointer, gconstpointer, gconstpointer, gconstpointer);
|
||||
typedef void (*SIGNAL_FUNC) (gconstpointer, gconstpointer,
|
||||
gconstpointer, gconstpointer,
|
||||
gconstpointer, gconstpointer, gconstpointer);
|
||||
|
||||
void signals_init(void);
|
||||
void signals_deinit(void);
|
||||
|
|
@ -11,7 +13,10 @@ void signals_deinit(void);
|
|||
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);
|
||||
void signal_add_to(const char *module, int pos,
|
||||
const char *signal, SIGNAL_FUNC func);
|
||||
void signal_add_to_id(const char *module, int pos,
|
||||
int signal, SIGNAL_FUNC func);
|
||||
#define signal_add(a, b) signal_add_to(MODULE_NAME, 1, a, b)
|
||||
#define signal_add_first(a, b) signal_add_to(MODULE_NAME, 0, a, b)
|
||||
#define signal_add_last(a, b) signal_add_to(MODULE_NAME, 2, a, b)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue