typedef int MPI_Comm;
typedef int MPI_Datatype;

int MPI_Barrier(MPI_Comm comm);
int PMPI_Barrier(MPI_Comm comm);  // excluded by regex in `generator.toml`

typedef int (MPI_Type_copy_attr_function)(MPI_Datatype, int, void *, void *, void *, int *);
typedef int (MPI_Type_delete_attr_function)(MPI_Datatype, int, void *, void *);
int MPI_Type_create_keyval(MPI_Type_copy_attr_function *type_copy_attr_fn,
                           MPI_Type_delete_attr_function *type_delete_attr_fn, int *type_keyval,
                           void *extra_state);
