File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ set(SRCS
159159 src/rmw_compare_gids_equal.c
160160 src/rmw_count.c
161161 src/rmw_event.c
162+ src/rmw_features.c
162163 src/rmw_get_gid_for_publisher.c
163164 src/rmw_get_implementation_identifier.c
164165 src/rmw_get_serialization_format.c
Original file line number Diff line number Diff line change 1+ // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
15+ #include <rmw/features.h>
16+
17+ bool
18+ rmw_feature_supported (
19+ rmw_feature_t feature )
20+ {
21+ bool ret = false;
22+ switch (feature ) {
23+ case RMW_FEATURE_MESSAGE_INFO_PUBLICATION_SEQUENCE_NUMBER :
24+ ret = false;
25+ break ;
26+ case RMW_FEATURE_MESSAGE_INFO_RECEPTION_SEQUENCE_NUMBER :
27+ ret = false;
28+ break ;
29+ default :
30+ break ;
31+ }
32+
33+ return ret ;
34+ }
You can’t perform that action at this time.
0 commit comments