Add convenience macros to setup the event structs

Using these convenience macros can reduce clutter in the code.