SilcTaskEventCallback

SYNOPSIS

    typedef void (*SilcTaskEventCallback)(SilcSchedule schedule,
                                          void *app_context,
                                          SilcTask task, void *context,
                                          va_list va);

DESCRIPTION

Task callback for event tasks added with silc_schedule_task_add_event. The callback of this type is called when an event task is signalled. The signal is delivered to all that have connected to the event.

The `task' is the event task. The `context' is the context given as argument to silc_schedule_event_connect. The `schedule' is the scheduler given as argument to silc_schedule_event_connect.

If FALSE is returned in this callback function the signal delivery to other connected entities is stopped. Normally, TRUE is returned. If the `task' is deleted in this callback, the signal delivery is also stopped.

To specify task event callback function in the application using the SILC_TASK_EVENT_CALLBACK macro is recommended.