guint afdal_event_source_set_callback gchar *  signal_name,
GSourceFunc  callback
 

Associate the given signal with the given callback.

Associate the given callback to the user programmed event signal_name (which must be previously created), and put it into the events checked by the main loop.

Parameters:
signal_name A signal name to be looked up
callback The callback to be asociated.
Returns:
Returns the GSource Id or 0 if the signal wasn't found.