NPA_Send_Event

Sends an event to the Novell Event Bus.

Thread Context:Blocking if eventFlags MAY_NOT_SLEEP_BIT is clear or Non-Blocking if eventFlags MAY_NOT_SLEEP_BIT is set.

Syntax

    LONG NPA_Send_Event (
       LONG                      npaHandle,
       struct EventBlockDef  *eventBlock
    );
    
    

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.
eventBlock
(IN) Points to the structure that is used to communicate with the event bus. See EventBlockStruct.

Return Values

The following table lists return values and descriptions.

0

Successful.

The EventBlockStruct is used to provide event information to the Novell Event Bus.

-1

INVALID_PARAMETER

Event production failed because the Novell Event Bus was passed an invalid event block or the npaHandle is invalid.

Remarks

NPA_Send_Event sends an event to the Novell Event Bus. A valid EventBlockStruct must be allocated using NPA_Get_EventBlocks. The registrationHandle must be placed in the producerHandle of the EventBlockStruct. Only producers call NPA_Send_Event.