BRender Technical Reference Manual:4 Data Structures (Alphabetical Reference):br_resourcefree_cbfn
Next|Prev|Up
The Call-Back Function
Specification
CBFnResourceFree()

br_resourcefree_cbfn


The Call-Back Function

This type defines a `destructor' function, optionally specified in the resource class descriptor br_resource_class
324, that is called just before a resource block is freed.

(See fwproto.h for a precise declaration)

The typedef

void br_resourcefree_cbfn(void*,br_uint8,br_size_t) Destructor

Specification


CBFnResourceFree()

Description:
An application defined call-back function accepting details of a resource block just before it will be freed.

Declaration:
void BR_CALLBACK CBFnResourceFree(void* res, br_uint_8 res_class, br_size_t size)

Arguments:
void * res

The resource block about to be freed.

br_uint_8 res_class

The memory class of the resource block's resource class.

br_size_t size

The size of the resource block (useful for arrays).

Preconditions:
BRender has completed initialisation.

Effects:
Application defined.

Do not free the block - this will be performed after the function returns. This function will also be subsequently called for any child resource blocks still attached.

See Also:
BrResFree()
51.



Generated with CERN WebMaker