Add an OCaml function to create the type-specific callback function tables