silc_schedule_event_connect
SYNOPSIS
SilcBool silc_schedule_event_connect(SilcSchedule schedule, const char *event, SilcTask task, SilcTaskEventCallback callback, void *context);
DESCRIPTION
Connects to an event task. The `event' or `task' must be non-NULL. If `event' is non-NULL it is the name of the event to connect to. If the `task' is non-NULL it is the event task to connect to. The event SilcTask pointer is returned by silc_schedule_task_add_event when the even is added to scheduler.
The `callback' with `context' and with `schedule' are called when the even task is signalled with silc_schedule_event_signal.
Returns FALSE on error or if the `callback' with `context' has already been connected. Otherwise, returns TRUE.
EXAMPLE
silc_schedule_event_connect(schedule, "foo event", NULL, foo_signal_callback, foo_context);