Arcade architecture
DynamicLib.hpp
Go to the documentation of this file.
1
13/*
14** EPITECH PROJECT, 2025
15** barcade
16** File description:
17** DynamicLib
18*/
19
20#ifndef DYNAMICLIB_HPP_
21 #define DYNAMICLIB_HPP_
22
23extern "C" {
33 void *openDynamicLib(const char *path);
34
45 void *getFunctionDynamicLib(void *moduleHandle, const char *name);
46
55 void closeDynamicLib(void *moduleHandle);
56
65 const char *getDlError(void);
66}
67
68#endif /* !DYNAMICLIB_HPP_ */
void closeDynamicLib(void *moduleHandle)
Closes a dynamic library.
Definition: DynamicLib.cpp:20
const char * getDlError(void)
Retrieves the last dynamic library error message.
Definition: DynamicLib.cpp:24
void * getFunctionDynamicLib(void *moduleHandle, const char *name)
Retrieves a function or symbol from a dynamic library.
Definition: DynamicLib.cpp:16
void * openDynamicLib(const char *path)
Opens a dynamic library.
Definition: DynamicLib.cpp:12