Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
add missing rmw_shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Nov 29, 2018
1 parent b430ec3 commit cc7f9a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rmw_opensplice_cpp/src/rmw_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,18 @@ rmw_init(const rmw_init_options_t * options, rmw_context_t * context)
}
return RMW_RET_OK;
}

rmw_ret_t
rmw_shutdown(rmw_context_t * context)
{
RCUTILS_CHECK_ARGUMENT_FOR_NULL(context, RMW_RET_INVALID_ARGUMENT);
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
context,
context->implementation_identifier,
opensplice_cpp_identifier,
return RMW_RET_INCORRECT_RMW_IMPLEMENTATION);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(context->impl, RMW_RET_INVALID_ARGUMENT);
*context = rmw_get_zero_initialized_context();
return RMW_RET_OK;
}
} // extern "C"

0 comments on commit cc7f9a3

Please sign in to comment.