add event.c file

Signed-off-by: feixiaoxing <feixiaoxing@163.com>