Extract pointer functions from events.c