Make definitions of vio functions into types, and use their names for
the callbacks.