Skip to content

Commit

Permalink
allocate loaned message
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
  • Loading branch information
Karsten1987 committed Aug 13, 2019
1 parent d85f351 commit 8e4a1ce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions rmw_implementation/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,17 @@ RMW_INTERFACE_FN(rmw_fini_publisher_allocation,
rmw_ret_t, RMW_RET_ERROR,
1, ARG_TYPES(rmw_publisher_allocation_t *))

RMW_INTERFACE_FN(rmw_allocate_loaned_message,
void *, nullptr,
3, ARG_TYPES(
const rmw_publisher_t *,
const rosidl_message_type_support_t *,
size_t))

RMW_INTERFACE_FN(rmw_deallocate_loaned_message,
rmw_ret_t, RMW_RET_ERROR,
2, ARG_TYPES(const rmw_publisher_t *, void*))

RMW_INTERFACE_FN(rmw_create_publisher,
rmw_publisher_t *, nullptr,
4, ARG_TYPES(
Expand Down Expand Up @@ -522,6 +533,8 @@ void prefetch_symbols(void)
GET_SYMBOL(rmw_node_get_graph_guard_condition)
GET_SYMBOL(rmw_init_publisher_allocation);
GET_SYMBOL(rmw_fini_publisher_allocation);
GET_SYMBOL(rmw_allocate_loaned_message);
GET_SYMBOL(rmw_deallocate_loaned_message);
GET_SYMBOL(rmw_create_publisher)
GET_SYMBOL(rmw_destroy_publisher)
GET_SYMBOL(rmw_publish)
Expand Down

0 comments on commit 8e4a1ce

Please sign in to comment.