Skip to content

Commit 5eca48f

Browse files
authored
Added rmw_event_type_is_supported (#323)
* Add rmw_event_type_is_supported implementation. Move rmw_take_event to rmw_event.c Signed-off-by: Antón Casas <antoncasas@eprosima.com> * Fix format Signed-off-by: Antón Casas <antoncasas@eprosima.com> --------- Signed-off-by: Antón Casas <antoncasas@eprosima.com>
1 parent 092bf25 commit 5eca48f

2 files changed

Lines changed: 22 additions & 13 deletions

File tree

rmw_microxrcedds_c/src/rmw_event.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,25 @@ rmw_subscription_event_init(
4141
RMW_UROS_TRACE_MESSAGE("function not implemented")
4242
return RMW_RET_UNSUPPORTED;
4343
}
44+
45+
rmw_ret_t
46+
rmw_take_event(
47+
const rmw_event_t * event_handle,
48+
void * event_info,
49+
bool * taken)
50+
{
51+
(void)event_handle;
52+
(void)event_info;
53+
(void)taken;
54+
RMW_UROS_TRACE_MESSAGE("function not implemented")
55+
return RMW_RET_UNSUPPORTED;
56+
}
57+
58+
bool
59+
rmw_event_type_is_supported(
60+
rmw_event_type_t event_type)
61+
{
62+
(void)event_type;
63+
RMW_UROS_TRACE_MESSAGE("function not implemented")
64+
return false;
65+
}

rmw_microxrcedds_c/src/rmw_take.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,3 @@ rmw_return_loaned_message_from_subscription(
210210
RMW_UROS_TRACE_MESSAGE("function not implemented")
211211
return RMW_RET_UNSUPPORTED;
212212
}
213-
214-
rmw_ret_t
215-
rmw_take_event(
216-
const rmw_event_t * event_handle,
217-
void * event_info,
218-
bool * taken)
219-
{
220-
(void)event_handle;
221-
(void)event_info;
222-
(void)taken;
223-
RMW_UROS_TRACE_MESSAGE("function not implemented")
224-
return RMW_RET_UNSUPPORTED;
225-
}

0 commit comments

Comments
 (0)