a simple eventbus impl in c