1.3/2.0 event handling changes

I just took some code that I wrote for 1.3 and tried to compile it using a fresh checkout of SDL2 from hg and it looks like a lot of events defs have changed or gone away.

Code:
do_events.c:102: error: ‘SDL_EVENT_COMPAT1’ undeclared (first use in this function)
do_events.c:102: error: (Each undeclared identifier is reported only once
do_events.c:102: error: for each function it appears in.)
do_events.c:106: error: ‘SDL_Event’ has no member named 'active’
do_events.c:107: error: ‘SDL_APPMOUSEFOCUS’ undeclared (first use in this function)
do_events.c:108: error: ‘SDL_Event’ has no member named 'active’
do_events.c:111: error: ‘SDL_APPINPUTFOCUS’ undeclared (first use in this function)
do_events.c:112: error: ‘SDL_Event’ has no member named 'active’
do_events.c:115: error: ‘SDL_APPACTIVE’ undeclared (first use in this function)
do_events.c:116: error: ‘SDL_Event’ has no member named 'active’
do_events.c:235: error: ‘SDL_EVENT_COMPAT2’ undeclared (first use in this function)
do_events.c:240: warning: implicit declaration of function 'SDL_SetVideoMode’
do_events.c:240: error: ‘SDL_Event’ has no member named 'resize’
do_events.c:240: error: ‘SDL_Event’ has no member named 'resize’
do_events.c:240: error: ‘SDL_RESIZABLE’ undeclared (first use in this function)
do_events.c:243: error: ‘SDL_EVENT_COMPAT3’ undeclared (first use in this function)
do_events.c:249: warning: implicit declaration of function ‘SDL_Flip’

Is there some good example code of moving from 1.3 event handling to 2.0 event handling?