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

br_resenum_cbfn


The Call-Back Function

This type defines a function, supplied to BrResChildEnum()
50, and to be called by it for each child resource block attached to a specific resource block.

(See fwproto.h for a precise declaration)

The typedef

br_uint_32 br_resenum_cbfn(void *,void *) Enumerator

Specification


CBFnResEnum()

Description:
An application defined call-back function accepting a resource block and an application supplied argument (as supplied to BrResChildEnum()
50).

Declaration:
br_uint_32 BR_CALLBACK CBFnResEnum(void* vres, void* arg)

Arguments:
void * vres

One of the resource blocks attached as a child of the resource block supplied to BrResChildEnum()50.

void * arg

The argument as supplied to BrResChildEnum()50.

Preconditions:
BRender has completed initialisation.

Effects:
Application defined.

If blocks are attached to the parent during the enumeration, they may not be included in the enumeration. Only the current, supplied child resource block should be detached or freed (if desired).

Result:
br_uint_32

Any non-zero value will terminate the enumeration and be returned by BrResChildEnum()50. Return zero to continue the enumeration.

See Also:
BrResChildEnum()50, BrResClassEnum()329.



Generated with CERN WebMaker