rcutils
master
C API providing common utilities and data structures.
|
Go to the documentation of this file.
15 #ifndef RCUTILS__SHARED_LIBRARY_H_
16 #define RCUTILS__SHARED_LIBRARY_H_
88 const char * library_path,
152 const char * library_name,
153 char * library_name_platform,
154 unsigned int buffer_size,
161 #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:31
void * lib_pointer
The platform-specific pointer to the shared library.
Definition: shared_library.h:34
char * library_path
The path of the shared_library.
Definition: shared_library.h:36
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:38
int rcutils_ret_t
Definition: rcutils_ret.h:23
#define RCUTILS_WARN_UNUSED
Definition: macros.h:24
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:45
#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.