Blender V4.3
wayland_dynload_utils.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11#pragma once
12
13#include <dlfcn.h> /* Dynamic loading. */
14#include <stdbool.h>
15
16typedef void *DynamicLibrary;
17
18#define dynamic_library_open(path) dlopen(path, RTLD_NOW)
19#define dynamic_library_close(lib) dlclose(lib)
20#define dynamic_library_find(lib, symbol) dlsym(lib, symbol)
21
24 int paths_num,
25 bool verbose,
26 int *r_path_index);
27
30 const char *symbol,
31 const char *path_lib,
32 bool verbose);
static int verbose
Definition cineonlib.cc:31
static DynamicLibrary lib
DynamicLibrary dynamic_library_open_array_with_error(const char **paths, int paths_num, bool verbose, int *r_path_index)
void * DynamicLibrary
void * dynamic_library_find_with_error(DynamicLibrary lib, const char *symbol, const char *path_lib, bool verbose)