Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Add content filter topic feature empty stub #490

Closed
Closed
Show file tree
Hide file tree
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
29 changes: 29 additions & 0 deletions rmw_connext_cpp/src/rmw_subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ rmw_create_subscription(
#endif

subscription->can_loan_messages = false;
subscription->is_cft_supported = false;
return subscription;
fail:
if (topic_str) {
Expand Down Expand Up @@ -392,6 +393,34 @@ rmw_subscription_get_actual_qos(
return RMW_RET_OK;
}

rmw_ret_t
rmw_subscription_set_cft_expression_parameters(
rmw_subscription_t * subscription,
const char * filter_expression,
const rcutils_string_array_t * expression_parameters)
{
// Unused in current implementation.
(void) subscription;
(void) filter_expression;
(void) expression_parameters;
RMW_SET_ERROR_MSG("unimplemented");
return RMW_RET_UNSUPPORTED;
}

rmw_ret_t
rmw_subscription_get_cft_expression_parameters(
const rmw_subscription_t * subscription,
char ** filter_expression,
rcutils_string_array_t * expression_parameters)
{
// Unused in current implementation.
(void) subscription;
(void) filter_expression;
(void) expression_parameters;
RMW_SET_ERROR_MSG("unimplemented");
return RMW_RET_UNSUPPORTED;
}

rmw_ret_t
rmw_destroy_subscription(rmw_node_t * node, rmw_subscription_t * subscription)
{
Expand Down
1 change: 1 addition & 0 deletions rmw_connext_dynamic_cpp/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@ rmw_create_subscription(
node_info->subscriber_listener->trigger_graph_guard_condition();

subscription->can_loan_messages = false;
subscription->is_cft_supported = false;
return subscription;
fail:
// Something has gone wrong, unroll what has been done.
Expand Down