Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PhFreeTransportType

PhFreeTransportType

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PhFreeTransportType()

Free data associated with a transport registry entry

Synopsis:

int PhFreeTransportType( void *data,
                         char *packing_type );

Library:

ph

Description:

This function assumes that the data pointed to by data is an allocated structure that's described by a transport registry entry for packing_type -- for more information, see PhTransportRegEntry_t.

All data associated with data is freed using the transport registry entry for packing_type.

Returns:

0
Success.
-1
A type matching packing_type wasn't found.

Examples:

PhFreeTransportType( ptr, "PhImage" );
PhFreeTransportType( ptr, "files" );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhFindTransportType(), PhMallocUnpack(), PhPackEntry(), PhRegisterTransportType(), PhTransportRegEntry_t, PhTransportType(), PhUnpack()

Drag and Drop chapter of the Photon Programmer's Guide