Change parameters for event callback.
Add new parameter: placeholder for errors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>