split ffi function definitions and type definitions