Skip to content
Open
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
42 changes: 42 additions & 0 deletions rmw_iceoryx_cpp/src/rmw_count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,46 @@ rmw_publisher_count_matched_subscriptions(
*subscription_count = counter;
return RMW_RET_OK;
}

rmw_ret_t
rmw_count_clients(
const rmw_node_t * node,
const char * service_name,
size_t * count)
{
RCUTILS_CHECK_ARGUMENT_FOR_NULL(node, RMW_RET_ERROR);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(service_name, RMW_RET_ERROR);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(count, RMW_RET_ERROR);

RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
rmw_count_clients
: node, node->implementation_identifier,
rmw_get_implementation_identifier(), return RMW_RET_ERROR);

// Iceoryx introspection does not support client/server counting
// See: https://github.com/eclipse-iceoryx/iceoryx/issues/1128
*count = 0;
return RMW_RET_UNSUPPORTED;
}

rmw_ret_t
rmw_count_services(
const rmw_node_t * node,
const char * service_name,
size_t * count)
{
RCUTILS_CHECK_ARGUMENT_FOR_NULL(node, RMW_RET_ERROR);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(service_name, RMW_RET_ERROR);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(count, RMW_RET_ERROR);

RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
rmw_count_services
: node, node->implementation_identifier,
rmw_get_implementation_identifier(), return RMW_RET_ERROR);

// Iceoryx introspection does not support client/server counting
// See: https://github.com/eclipse-iceoryx/iceoryx/issues/1128
*count = 0;
return RMW_RET_UNSUPPORTED;
}
} // extern "C"
7 changes: 7 additions & 0 deletions rmw_iceoryx_cpp/src/rmw_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,11 @@ rmw_ret_t rmw_event_set_callback(

return RMW_RET_UNSUPPORTED;
}

bool
rmw_event_type_is_supported(rmw_event_type_t event_type)
{
(void) event_type;
return false;
}
} // extern "C"