Function pub_add_event_callback

Function Documentation

ECAL_API bool pub_add_event_callback(ECAL_HANDLE handle_, enum eCAL_Publisher_Event type_, const PubEventCallbackCT callback_, void *par_)

Add callback function for publisher events.

Parameters
  • handle_ – Publisher handle.

  • type_ – The event type to react on.

  • callback_ – The callback function to add.

  • par_ – User defined context that will be forwarded to the callback function.

Returns

True if succeeded.