Typedefs | |
typedef int(*) | IX_SIGNAL_FCT (int signal, void *userdata) |
Prototype of Callback (AST) for signal activity. | |
typedef ix_signal_s | ix_signal_t |
the ix signal handle | |
Functions | |
ix_signal_t * | ix_signal_new (ix_event_t *pev, int signal, IX_SIGNAL_FCT cb, void *userdata) |
int | ix_signal_free (ix_signal_t *psig) |
int ix_signal_free | ( | ix_signal_t * | psig | ) |
frees memory for signal handle and detaches from event
psig | ix signal handle |
ix_signal_t* ix_signal_new | ( | ix_event_t * | pev, | |
int | signal, | |||
IX_SIGNAL_FCT | cb, | |||
void * | userdata | |||
) |
constructor, relates signal activity to an event or callback
pev | event to trigger when signal activity | |
signal | ||
cb | called when signal is signalled | |
userdata | to call cb with |