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


Home
QNX Community Resources
QNX Documentation Library
PhABResExportCommon_t.free_image

PhABResExportCommon_t.free_image

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

PhABResExportCommon_t.free_image()

A function exported by PhAB to free an image created with alloc_image()

Synopsis:

void free_image  ( PhImage_t *p )

Arguments:

p
A pointer to the image date you want to free, returned by alloc_image().

Description:

This function is exported from PhAB in the PhABResExportCommon_t structure.

This function should be used by the plugin to free the image allocated using the PhAB exported alloc_image() function.

Because the flags member is set to Ph_RELEASE_IMAGE_ALL when an image is allocated with alloc_image(), all the fields of the new image that required allocating memory are released when the image is released.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

alloc_image(), PhABResExportCommon_t