Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added rmw_event_type_is_supported #809

Open
wants to merge 6 commits into
base: rolling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
6 changes: 6 additions & 0 deletions rmw_fastrtps_cpp/src/rmw_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,10 @@ rmw_event_set_callback(
callback,
user_data);
}

bool
rmw_event_check_compatible(rmw_event_type_t rmw_event_type)
{
return rmw_fastrtps_shared_cpp::__rmw_event_check_compatible(rmw_event_type);
}
} // extern "C"
7 changes: 7 additions & 0 deletions rmw_fastrtps_dynamic_cpp/src/rmw_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,11 @@ rmw_event_set_callback(
callback,
user_data);
}

bool
rmw_event_check_compatible(rmw_event_type_t rmw_event_type)
{
return rmw_fastrtps_shared_cpp::__rmw_event_check_compatible(rmw_event_type);
}

} // extern "C"
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ RMW_FASTRTPS_SHARED_CPP_PUBLIC
bool
__rmw_feature_supported(rmw_feature_t feature);

RMW_FASTRTPS_SHARED_CPP_PUBLIC
bool
__rmw_event_check_compatible(rmw_event_type_t rmw_event_type);

} // namespace rmw_fastrtps_shared_cpp

#endif // RMW_FASTRTPS_SHARED_CPP__RMW_COMMON_HPP_
6 changes: 6 additions & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,10 @@ __rmw_event_set_callback(
return RMW_RET_OK;
}

bool
__rmw_event_check_compatible(rmw_event_type_t rmw_event_type)
{
return rmw_fastrtps_shared_cpp::internal::is_event_supported(rmw_event_type);
}

} // namespace rmw_fastrtps_shared_cpp