move all struct declare into common.h