Signals


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_tix_signal_new (ix_event_t *pev, int signal, IX_SIGNAL_FCT cb, void *userdata)
int ix_signal_free (ix_signal_t *psig)

Detailed Description

Here we map signal activity to ix events.

Function Documentation

int ix_signal_free ( ix_signal_t psig  ) 

frees memory for signal handle and detaches from event

Parameters:
psig ix signal handle
Returns:
  • 0: OK
  • !0: Error

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

Parameters:
pev event to trigger when signal activity
signal 
cb called when signal is signalled
userdata to call cb with
Returns:
  • Handle: OK
  • NULL: error


Generated on 4 Mar 2014 for ixtools by  doxygen 1.4.7