Function rcl_log_levels_copy

Function Documentation

rcl_ret_t rcl_log_levels_copy(const rcl_log_levels_t *src, rcl_log_levels_t *dst)

Copy one log levels structure into another.

Attribute

Adherence

Allocates Memory

Yes

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • src[in] The structure to be copied. Its allocator is used to copy memory into the new structure.

  • dst[out] A log levels structure to be copied into.

Returns:

RCL_RET_OK if the structure was copied successfully, or

Returns:

RCL_RET_INVALID_ARGUMENT if src is NULL, or

Returns:

RCL_RET_INVALID_ARGUMENT if src allocator is invalid, or

Returns:

RCL_RET_INVALID_ARGUMENT if dst is NULL, or

Returns:

RCL_RET_INVALID_ARGUMENT if dst contains already allocated memory, or

Returns:

RCL_RET_BAD_ALLOC if allocating memory failed.