MI_FUNC_DESC *mi_func_desc_by_typeid(conn, routine_id) MI_CONNECTION *conn; mi_funcid *routine_id;;
can be a pointer to a session-duration connection descriptor established by a previous call to mi_get_session_connection( ). Use of a session-duration connection descriptor is an advanced feature of the DataBlade API.
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
No | Yes |
The mi_func_desc_by_typeid( ) function creates a function descriptor for the UDR that the routine_id argument specifies. The routine_id argument provides the routine identifier of the UDR. The function is one of the functions of the Fastpath interface. It is a constructor function for the function descriptor.
This function performs the following tasks:
When you pass a public connection descriptor (from mi_open( )), the mi_func_desc_by_typeid( ) function allocates the new function descriptor in the PER_COMMAND memory duration. If you pass a session-duration connection descriptor (from mi_get_session_connection( )), mi_func_desc_by_typeid( ) allocates the new function descriptor in the PER_SESSION memory duration. This function descriptor is called a session-duration function descriptor. For more information, see the IBM Informix: DataBlade API Programmer's Guide.
See also the descriptions of mi_fparam_get( ), mi_routine_end( ), mi_routine_exec( ), mi_routine_get( ), mi_routine_get_by_typeid( ), and mi_routine_id_get( ).