22 # define OF_RTLD_LAZY RTLD_LAZY
23 # define OF_RTLD_NOW RTLD_NOW
24 typedef void *of_plugin_handle_t;
27 # define OF_RTLD_LAZY 0
28 # define OF_RTLD_NOW 0
29 typedef HMODULE of_plugin_handle_t;
32 OF_ASSUME_NONNULL_BEGIN
41 of_plugin_handle_t _pluginHandle;
57 extern of_plugin_handle_t of_dlopen(
OFString *path,
int flags);
58 extern void *of_dlsym(of_plugin_handle_t handle,
const char *symbol);
59 extern OFString *_Nullable of_dlerror(
void);
60 extern void of_dlclose(of_plugin_handle_t handle);
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
Provides a system for loading plugins at runtime.
Definition: OFPlugin.h:40
A class for handling strings.
Definition: OFString.h:132