libevents: changed var names to ev_type, ev_subtype