PTMAP_wait_sl

This subroutine waits for a response to a Shopping List request. The application may specify whether to wait for all responses to the requests in the Shopping List, or any response to a request in the Shopping List. PTMAP returns control to the application after the response or group of responses for requests in the specified Shopping List have been returned.

Syntax

int PTMAP_wait_sl (sl_adr, wait_flag,  retstat)

PTMAP_ADDR  *sl_adr;

int         wait_flag;

COR_STATUS  *retstat;

Input Arguments

req_adr

Identifier used to reference this request.

wait_flag

Either PTM_NEXT (wait for the next response) or PTM_ALL (wait until responses have been made for all outstanding requests for that Shopping List).

Output Arguments

Retstat

Pointer to status structure. The following errors may be returned (see Appendix A for an explanation of this code):

 

PTMAP_ADDR_PTR_NULL

 

PTMAP_SL_ADR_NULL

 

PTMAP_SL_ADR_NOTF

 

PTMAP_SEQ_NUM_MISMATCH

 

The following warning may be returned:

 

PTMAP_REQ_NOT_OUT

Return Value

The contents of retstat.status.

More information

Point Management API subroutines.