prt_api_send_resp

Name

prt_api_send_resp

Purpose

Send response to production tracking.

Description

This API provides a mechanism for external processes to send asynchronous responses to PRT_API requests. This routine packages the applications response and sends it to the appropriate PRT resident process.

Syntax

int prt_api_send_resp (prt_svc_id, retstat)

char        prt_svc_id[SERVICE_ID_LEN +1];

COR_STATUS  *retstat;

Data Structures

None

Arguments

Argument

Description

Input

 

prt_svc_id

PRT service identifier

Output

 

*retstat

Pointer to COR_STATUS structure

Return Value

Either COR_SUCCESS or COR_FAILURE.

If the function returns COR_FAILURE additional error information can be found in the COR_STATUS structure.

Error Codes

PRTI_SVC_ID_NULL

PRT service identifier NULL (Warning)

PRTI_SVC_ID_NDEF

PRT service identifier not valid (Warning)

PRTI_WRITE_PORT_ERR

Error in ipc_write_port (Warn/Fail)

PRTI_BAD_MSG

Error in segment (Failure)

PRTI_MF_INIT_ERR

Error initializing segment (Failure)

More information

Application subroutines.