Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a dummy readcdr function if needed #169

Merged
merged 1 commit into from
Jun 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions rmw_cyclonedds_cpp/src/graphrhc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,26 @@ static int graphrhc_take(
return 0;
}

#if DDS_HAS_READCDR
static int graphrhc_readcdr(
struct dds_rhc * rhc_cmn, bool lock, struct ddsi_serdata ** values,
dds_sample_info_t * info_seq, uint32_t max_samples,
uint32_t sample_states, uint32_t view_states, uint32_t instance_states,
dds_instance_handle_t handle)
{
static_cast<void>(rhc_cmn);
static_cast<void>(lock);
static_cast<void>(values);
static_cast<void>(info_seq);
static_cast<void>(max_samples);
static_cast<void>(sample_states);
static_cast<void>(view_states);
static_cast<void>(instance_states);
static_cast<void>(handle);
return 0;
}
#endif

static int graphrhc_takecdr(
struct dds_rhc * rhc_cmn, bool lock, struct ddsi_serdata ** values,
dds_sample_info_t * info_seq, uint32_t max_samples,
Expand Down Expand Up @@ -165,6 +185,9 @@ static const struct dds_rhc_ops graphrhc_ops = {
},
graphrhc_read,
graphrhc_take,
#if DDS_HAS_READCDR
graphrhc_readcdr,
#endif
graphrhc_takecdr,
graphrhc_add_readcondition,
graphrhc_remove_readcondition,
Expand Down