|
Blender V4.3
|
#include <dlfcn.h>#include <stdbool.h>Go to the source code of this file.
Macros | |
| #define | dynamic_library_open(path) dlopen(path, RTLD_NOW) |
| #define | dynamic_library_close(lib) dlclose(lib) |
| #define | dynamic_library_find(lib, symbol) dlsym(lib, symbol) |
Typedefs | |
| typedef void * | DynamicLibrary |
Functions | |
| DynamicLibrary | dynamic_library_open_array_with_error (const char **paths, int paths_num, bool verbose, int *r_path_index) |
| void * | dynamic_library_find_with_error (DynamicLibrary lib, const char *symbol, const char *path_lib, bool verbose) |
Utility defines.
Definition in file wayland_dynload_utils.h.
Definition at line 19 of file wayland_dynload_utils.h.
Referenced by wayland_dynload_client_exit(), wayland_dynload_cursor_exit(), wayland_dynload_egl_exit(), and wayland_dynload_libdecor_exit().
Definition at line 20 of file wayland_dynload_utils.h.
Referenced by dynamic_library_find_with_error().
| #define dynamic_library_open | ( | path | ) | dlopen(path, RTLD_NOW) |
Definition at line 18 of file wayland_dynload_utils.h.
Referenced by dynamic_library_open_array_with_error().
| typedef void* DynamicLibrary |
Definition at line 16 of file wayland_dynload_utils.h.
| void * dynamic_library_find_with_error | ( | DynamicLibrary | lib, |
| const char * | symbol, | ||
| const char * | path_lib, | ||
| bool | verbose ) |
Find a symbol, printing an error when the symbol isn't found.
Definition at line 35 of file wayland_dynload_utils.c.
References dynamic_library_find, lib, NULL, and verbose.
| DynamicLibrary dynamic_library_open_array_with_error | ( | const char ** | paths, |
| int | paths_num, | ||
| bool | verbose, | ||
| int * | r_path_index ) |
Loads a library from an array, printing an error when the symbol isn't found.
Definition at line 13 of file wayland_dynload_utils.c.
References dynamic_library_open, lib, NULL, and verbose.
Referenced by wayland_dynload_client_init(), wayland_dynload_cursor_init(), wayland_dynload_egl_init(), and wayland_dynload_libdecor_init().