Function rcutils_load_shared_library
Defined in File shared_library.h
Function Documentation
-
rcutils_ret_t rcutils_load_shared_library(rcutils_shared_library_t *lib, const char *library_path, rcutils_allocator_t allocator)
Return shared library pointer.
- Parameters:
lib – [inout] struct with the shared library pointer and shared library path name
library_path – [in] string with the path of the library
allocator – [in] to be used to allocate and deallocate memory
- Returns:
RCUTILS_RET_OK if successful, or
- Returns:
RCUTILS_RET_BAD_ALLOC if memory allocation fails, or
- Returns:
RCUTILS_RET_ERROR if an unknown error occurs, or
- Returns:
RCUTILS_RET_INVALID_ARGUMENT for invalid arguments.