Function dds_lset_liveliness_lost_arg

Function Documentation

dds_return_t dds_lset_liveliness_lost_arg(dds_listener_t *listener, dds_on_liveliness_lost_fn callback, void *arg, bool reset_on_invoke)

Set the liveliness_lost callback and argument in the listener structure.

Parameters
  • listener[inout] listener structure to update

  • callback[in] the callback to set or a null pointer

  • arg[in] callback argument that is passed uninterpreted to the callback function

  • reset_on_invoke[in] whether or not the status should be cleared when the listener callback is invoked

Return values
  • DDS_RETCODE_OK – success

  • DDS_RETCODE_BAD_PARAMETER – listener is a null pointer