Skip to content

Commit

Permalink
Refs #21329: Update public API
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Jul 10, 2024
1 parent a73448d commit c787dcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions include/fastdds/dds/publisher/DataWriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,19 @@ class DataWriter : public DomainEntity
* Write data to the topic.
*
* @param data Pointer to the data
* @return True if correct, false otherwise
* @return RETCODE_OK if the data is correctly sent and RETCODE_ERROR otherwise.
*/
FASTDDS_EXPORTED_API bool write(
FASTDDS_EXPORTED_API ReturnCode_t write(
const void* const data);

/**
* Write data with params to the topic.
*
* @param data Pointer to the data
* @param params Extra write parameters.
* @return True if correct, false otherwise
* @return RETCODE_OK if the data is correctly sent and RETCODE_ERROR otherwise.
*/
FASTDDS_EXPORTED_API bool write(
FASTDDS_EXPORTED_API ReturnCode_t write(
const void* const data,
fastdds::rtps::WriteParams& params);

Expand Down
4 changes: 2 additions & 2 deletions src/cpp/fastdds/publisher/DataWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ ReturnCode_t DataWriter::discard_loan(
return impl_->discard_loan(sample);
}

bool DataWriter::write(
ReturnCode_t DataWriter::write(
const void* const data)
{
return impl_->write(data);
}

bool DataWriter::write(
ReturnCode_t DataWriter::write(
const void* const data,
fastdds::rtps::WriteParams& params)
{
Expand Down

0 comments on commit c787dcd

Please sign in to comment.