add file calg_types.h