Commit 48df81b 1 parent 91b1dc7 commit 48df81b Copy full SHA for 48df81b
File tree 2 files changed +28
-2
lines changed
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ extern "C"
20
20
{
21
21
#endif
22
22
23
+ #include <rcutils/allocator.h>
24
+
23
25
#include <rosidl_dynamic_typesupport/api/serialization_support.h>
24
26
#include <rosidl_dynamic_typesupport/dynamic_message_type_support_struct.h>
25
27
#include <rosidl_dynamic_typesupport/identifier.h>
@@ -57,9 +59,10 @@ rmw_take_dynamic_message_with_info(
57
59
RMW_PUBLIC
58
60
RMW_WARN_UNUSED
59
61
rmw_ret_t
60
- rmw_get_serialization_support (
62
+ rmw_serialization_support_init (
61
63
const char * serialization_lib_name ,
62
- rosidl_dynamic_typesupport_serialization_support_t * * serialization_support ); // OUT
64
+ rcutils_allocator_t * allocator ,
65
+ rosidl_dynamic_typesupport_serialization_support_t * serialization_support ); // OUT
63
66
64
67
// TODO(methylDragon): Nice to have only
65
68
// RMW_PUBLIC
Original file line number Diff line number Diff line change @@ -175,6 +175,29 @@ typedef rcutils_error_state_t rmw_error_state_t;
175
175
/// Reset the error state by clearing any previously set error state.
176
176
#define rmw_reset_error rcutils_reset_error
177
177
178
+ /// Set the error message using RCUTILS_SET_ERROR_MSG and append the previous error.
179
+ /**
180
+ * If there is no previous error, has same behavior as RCUTILS_SET_ERROR_MSG.
181
+ * \param[in] msg The error message to be set.
182
+ */
183
+ #define RMW_SET_ERROR_MSG_AND_APPEND_PREV_ERROR (msg ) \
184
+ RCUTILS_SET_ERROR_MSG_AND_APPEND_PREV_ERROR(msg)
185
+
186
+ /// Set the error message with RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING and append the previous
187
+ /// error.
188
+ /**
189
+ * This function sets the error message using the given format string, and appends and resets the
190
+ * latest error string.
191
+ * The resulting formatted string is silently truncated at RCUTILS_ERROR_MESSAGE_MAX_LENGTH.
192
+ *
193
+ * If there is no previous error, has same behavior as RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING.
194
+ *
195
+ * \param[in] format_string The string to be used as the format of the error message.
196
+ * \param[in] ... Arguments for the format string.
197
+ */
198
+ #define RMW_SET_ERROR_MSG_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR (format_string , ...) \
199
+ RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR(format_string, __VA_ARGS__)
200
+
178
201
#ifdef __cplusplus
179
202
}
180
203
#endif
You can’t perform that action at this time.
0 commit comments