Update manager.c

add callable type for Events::attach