Copyright © TIBCO Software Inc. All Rights Reserved

> tibemsMsgConsumer_GetMsgListener
> Function
> Purpose
> Get the message callback and closure data from a consumer.
> C Declaration
> tibems_status tibemsMsgConsumer_GetMsgListener(
> tibemsMsgConsumer msgConsumer,
> tibemsMsgCallback* callbackPtr,
> void** closure );
> Parameters

> Parameter | Description
> msgConsumer | Get the listener from this consumer.
> callbackPtr | The function stores a pointer to the callback in this location.
> closure | The function stores a pointer to the closure data in this location. This pointer is passed into the message listener callback.

> Remarks
> EMS C programs can implement a message listener as a callback function paired with closure data. This call extracts these items from a consumer object.
> Your program implements the callback, and registers it by calling tibemsMsgConsumer_SetMsgListener. When a message arrives, the consumer calls the callback.
> This call is not supported in COBOL.
> See Also
> tibemsMsgConsumer_SetMsgListener on page 171
> tibemsMsgCallback on page 172

Copyright © TIBCO Software Inc. All Rights Reserved