Blender V5.3
dbus_dynload_utils.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
13
14#pragma once
15
16#include <dlfcn.h> /* Dynamic loading. */
17#include <stdbool.h>
18
19typedef void *DynamicLibrary;
20
21#define dynamic_library_open(path) dlopen(path, RTLD_NOW)
22#define dynamic_library_close(lib) dlclose(lib)
23#define dynamic_library_find(lib, symbol) dlsym(lib, symbol)
24
27 int paths_num,
28 bool verbose,
29 int *r_path_index);
30
33 const char *symbol,
34 const char *path_lib,
35 bool verbose);
static DynamicLibrary lib
DynamicLibrary dynamic_library_open_array_with_error(const char **paths, const int paths_num, const bool verbose, int *r_path_index)
void * dynamic_library_find_with_error(DynamicLibrary lib, const char *symbol, const char *path_lib, const bool verbose)
void * DynamicLibrary