Use struct to pass information to event handler

Event handlers takes lot more parameters than just user_data, and it
might be updated later. Pack everything in a struct, so the API doesn't
change later (possibly the ABI though)

Signed-off-by: Max Sikstrom <msikstrom@op5.com>