gtpc2mad | C/C++ Language Support User's Guide |
This function returns the conversation type, which can be either basic or mapped.
Format
#include <tppc.h> void tppc_get_type(unsigned int *resid, struct tppc_return_codes *rcode, enum t_get_type_type *type);
Return Codes
The return codes that can be returned to the program that called the
tppc_get_type function. A complete list of the return codes
and their definitions can be found in Table 37 and Table 38.
Symbolic Name | Primary Code | Secondary Code |
---|---|---|
LU62RC_OK | 0000 | |
LU62RC_PARAMETER_CHECK | 0001 | |
LU62RC_PK_BAD_TCBID | .... | 00000001 |
LU62RC_PK_BAD_CONVID | .... | 00000002 |
Programming Considerations
Examples
The following example retrieves the conversation type.
#include <tppc.h> unsigned int resource_id; struct tppc_return_codes return_code; enum t_get_type_type type;
·
·
·
/* set up resource_id with the value returned from the allocate verb */
·
·
·
tppc_get_type(&resource_id,&return_code,&type); /* normal processing path */
·
·
·
Related Information