@@ -19,16 +19,16 @@ #ifndef OF_WINDOWS # include # define OF_RTLD_LAZY RTLD_LAZY # define OF_RTLD_NOW RTLD_NOW -typedef void *of_plugin_handle_t; +typedef void *OFPluginHandle; #else # include # define OF_RTLD_LAZY 0 # define OF_RTLD_NOW 0 -typedef HMODULE of_plugin_handle_t; +typedef HMODULE OFPluginHandle; #endif OF_ASSUME_NONNULL_BEGIN /** @@ -36,11 +36,11 @@ * * @brief Provides a system for loading plugins at runtime. */ @interface OFPlugin: OFObject { - of_plugin_handle_t _pluginHandle; + OFPluginHandle _pluginHandle; OF_RESERVE_IVARS(OFPlugin, 4) } /** * @brief Loads a plugin from a file. @@ -52,14 +52,14 @@ @end #ifdef __cplusplus extern "C" { #endif -extern of_plugin_handle_t of_dlopen(OFString *path, int flags); -extern void *of_dlsym(of_plugin_handle_t handle, const char *symbol); -extern OFString *_Nullable of_dlerror(void); -extern void of_dlclose(of_plugin_handle_t handle); +extern OFPluginHandle OFDlopen(OFString *path, int flags); +extern void *OFDlsym(OFPluginHandle handle, const char *symbol); +extern OFString *_Nullable OFDlerror(void); +extern void OFDlclose(OFPluginHandle handle); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END