Skip to content

Commit a2a7484

Browse files
Add features.c (#267) (#268)
* Add features.c Signed-off-by: Pablo Garrido <pablogs9@gmail.com> * Uncrusty Signed-off-by: Pablo Garrido <pablogs9@gmail.com> Signed-off-by: Pablo Garrido <pablogs9@gmail.com> (cherry picked from commit b80b96a) Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
1 parent 7505d97 commit a2a7484

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

rmw_microxrcedds_c/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

0 commit comments

Comments
 (0)