Function dds_lset_publication_matched_arg

Function Documentation

dds_return_t dds_lset_publication_matched_arg(dds_listener_t *listener, dds_on_publication_matched_fn callback, void *arg, bool reset_on_invoke)

Set the publication_matched 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