Blender  V3.3
wayland_dynload_utils.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
9 #pragma once
10 
11 #include <dlfcn.h> /* Dynamic loading. */
12 #include <stdbool.h>
13 
14 typedef void *DynamicLibrary;
15 
16 #define dynamic_library_open(path) dlopen(path, RTLD_NOW)
17 #define dynamic_library_close(lib) dlclose(lib)
18 #define dynamic_library_find(lib, symbol) dlsym(lib, symbol)
19 
22  int paths_num,
23  bool verbose,
24  int *r_path_index);
25 
28  const char *symbol,
29  const char *path_lib);
static int verbose
Definition: cineonlib.c:29
DRWShaderLibrary * lib
void * dynamic_library_find_with_error(DynamicLibrary lib, const char *symbol, const char *path_lib)
DynamicLibrary dynamic_library_open_array_with_error(const char **paths, int paths_num, bool verbose, int *r_path_index)
void * DynamicLibrary