rcutils
master
C API providing common utilities and data structures.
|
Go to the documentation of this file.
17 #ifndef RCUTILS__SHARED_LIBRARY_H_
18 #define RCUTILS__SHARED_LIBRARY_H_
90 const char * library_path,
157 const char * library_name,
158 char * library_name_platform,
159 unsigned int buffer_size,
166 #endif // RCUTILS__SHARED_LIBRARY_H_
struct rcutils_shared_library_t rcutils_shared_library_t
Handle to a loaded shared library.
bool rcutils_has_symbol(const rcutils_shared_library_t *lib, const char *symbol_name)
Return true if the shared library contains a specific symbol name otherwise returns false.
rcutils_ret_t rcutils_unload_shared_library(rcutils_shared_library_t *lib)
Unload the shared library.
Handle to a loaded shared library.
Definition: shared_library.h:33
void * lib_pointer
The platform-specific pointer to the shared library.
Definition: shared_library.h:36
char * library_path
The path of the shared_library.
Definition: shared_library.h:38
rcutils_shared_library_t rcutils_get_zero_initialized_shared_library(void)
Return an empty shared library struct.
#define RCUTILS_PUBLIC_TYPE
Definition: visibility_control.h:29
rcutils_allocator_t allocator
allocator
Definition: shared_library.h:40
int rcutils_ret_t
The type that holds a return value for an rcutils operation.
Definition: rcutils_ret.h:26
#define RCUTILS_WARN_UNUSED
A macro to make the compiler warn when the return value of a function is not used.
Definition: macros.h:27
rcutils_ret_t rcutils_get_platform_library_name(const char *library_name, char *library_name_platform, unsigned int buffer_size, bool debug)
Get the library name for the compiled platform.
Encapsulation of an allocator.
Definition: allocator.h:47
#define RCUTILS_PUBLIC
Definition: visibility_control.h:23
rcutils_ret_t rcutils_load_shared_library(rcutils_shared_library_t *lib, const char *library_path, rcutils_allocator_t allocator)
Return shared library pointer.
bool rcutils_is_shared_library_loaded(rcutils_shared_library_t *lib)
Check if the library is loaded.
void * rcutils_get_symbol(const rcutils_shared_library_t *lib, const char *symbol_name)
Return shared library symbol pointer.