Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PhLocateTransHdr()

Look for specific data in a linked list of transport headers

Synopsis:

int PhLocateTransHdr( PhTransportHdr_t **hdr_list,
                      PhTransLoc_t *desired_data,
                      PhTransportHdr_t *found );

Library:

ph

Description:

PhLocateTransHdr() searches the list of transport headers pointed to by *hdr_list for the specific data of the type and description specified by desired_data.

If the function finds the data, it sets found to point to the header. It also removes any headers for data in the same group as the data found (i.e. the other forms or choices of the data).

Returns:

0
The data wasn't found.
1
The data was found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhGetAllTransportHdrs(), PhGetNextTransportHdr(), PhGetTransportHdr(), PhReleaseTransportHdrs(), PhUnlinkTransportHdr()

Drag and Drop chapter of the Photon Programmer's Guide