@@ -84,6 +84,46 @@ rmw_count_subscribers(
84
84
return RMW_RET_OK;
85
85
}
86
86
87
+ rmw_ret_t
88
+ rmw_count_services (
89
+ const rmw_node_t * node,
90
+ const char * service_name,
91
+ size_t * count)
92
+ {
93
+ RCUTILS_CHECK_ARGUMENT_FOR_NULL (node, RMW_RET_ERROR);
94
+ RCUTILS_CHECK_ARGUMENT_FOR_NULL (service_name, RMW_RET_ERROR);
95
+ RCUTILS_CHECK_ARGUMENT_FOR_NULL (count, RMW_RET_ERROR);
96
+
97
+ RMW_CHECK_TYPE_IDENTIFIERS_MATCH (
98
+ rmw_count_subscribers
99
+ : node, node->implementation_identifier ,
100
+ rmw_get_implementation_identifier (), return RMW_RET_ERROR);
101
+
102
+ // / @todo There is no API to find out which 'ServiceDescription' is offered by which node
103
+ RMW_SET_ERROR_MSG (" rmw_count_services is not supported in iceoryx" );
104
+ return RMW_RET_UNSUPPORTED;
105
+ }
106
+
107
+ rmw_ret_t
108
+ rmw_count_clients (
109
+ const rmw_node_t * node,
110
+ const char * service_name,
111
+ size_t * count)
112
+ {
113
+ RCUTILS_CHECK_ARGUMENT_FOR_NULL (node, RMW_RET_ERROR);
114
+ RCUTILS_CHECK_ARGUMENT_FOR_NULL (service_name, RMW_RET_ERROR);
115
+ RCUTILS_CHECK_ARGUMENT_FOR_NULL (count, RMW_RET_ERROR);
116
+
117
+ RMW_CHECK_TYPE_IDENTIFIERS_MATCH (
118
+ rmw_count_subscribers
119
+ : node, node->implementation_identifier ,
120
+ rmw_get_implementation_identifier (), return RMW_RET_ERROR);
121
+
122
+ // / @todo There is no API to find out which 'ServiceDescription' is offered by which node
123
+ RMW_SET_ERROR_MSG (" rmw_count_clients is not supported in iceoryx" );
124
+ return RMW_RET_UNSUPPORTED;
125
+ }
126
+
87
127
rmw_ret_t
88
128
rmw_subscription_count_matched_publishers (
89
129
const rmw_subscription_t * subscription,
0 commit comments