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

rcutils_serialized_message -> rcutils_char_array #146

Merged
merged 2 commits into from
Aug 9, 2018
Merged
Changes from all 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
19 changes: 12 additions & 7 deletions rmw/include/rmw/serialized_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ extern "C"
{
#endif

#include "rcutils/types/serialized_message.h"
#include "rcutils/types/char_array.h"

// aliases for rcutils_serialized_message_t
typedef rcutils_serialized_message_t rmw_serialized_message_t;
#define rmw_get_zero_initialized_serialized_message rcutils_get_zero_initialized_serialized_message
#define rmw_serialized_message_init rcutils_serialized_message_init
#define rmw_serialized_message_fini rcutils_serialized_message_fini
#define rmw_serialized_message_resize rcutils_serialized_message_resize
// aliases for rcutils_char_array_t
/*
* For now this is a simple aliasing from a serialized message to a char array.
* However, in future developments this serialized message can become something
* more complex and is therefore aliased.
*/
typedef rcutils_char_array_t rmw_serialized_message_t;
#define rmw_get_zero_initialized_serialized_message rcutils_get_zero_initialized_char_array
#define rmw_serialized_message_init rcutils_char_array_init
#define rmw_serialized_message_fini rcutils_char_array_fini
#define rmw_serialized_message_resize rcutils_char_array_resize

#if __cplusplus
}
Expand Down