NPA_Get_EventBlocks

Returns a pointer to a linked list of event blocks. This is used by a producer only, and is used when calling NPA_Send_Event.

Thread Context:Blocking

Syntax

    EventBlockDef *NPA_Get_EventBlocks (
       LONG   npaHandle,
       LONG   numberOfBlocks
    );
    
    

Parameters

npaHandle
(IN) The CDM's or HAM's handle for using the NPA APIs. Its value was assigned during NPA_Register_CDM_Module or NPA_Register_HAM_Module, respectively.
numberOfBlocks
(IN) Number of event block structures to allocate.

Remarks

This function is used to get an event block used for sending events. Only those registered as producers need to call this function. Producers of events must call this function to allocate a message to send when calling NPA_Send_Event. Refer to EventBlockStruct.