C: add missing addEvents function header.

Got left out when cherry picking a previous commit because I am a
buffoon.