st/oxr: Set function_out and clarifiy code
Rename function
argument to out_function
and add a internal field that is set to NULL to make sure we hit the error path.
Rename function
argument to out_function
and add a internal field that is set to NULL to make sure we hit the error path.