Function rosidl_runtime_c__type_description__TypeSource__init

Function Documentation

bool rosidl_runtime_c__type_description__TypeSource__init(rosidl_runtime_c__type_description__TypeSource *msg)

Initialize msg/TypeSource message.

If the init function is called twice for the same message without calling fini inbetween previously allocated memory will be leaked.

Parameters:

msg[inout]

The previously allocated message pointer. Fields without a default value will not be initialized by this function. You might want to call memset(msg, 0, sizeof(

rosidl_runtime_c__type_description__TypeSource

)) before or use

rosidl_runtime_c__type_description__TypeSource__create() to allocate and initialize the message.

Returns:

true if initialization was successful, otherwise false