45 int success = g_module_supported();
58 if(strchr(library,
'/') == NULL)
60 name = g_module_build_path(NULL, library);
64 name = g_strdup(library);
67 gmodule = g_module_open(
name, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
71 module = (dt_gmodule_t *)malloc(sizeof(dt_gmodule_t));
72 module->gmodule = gmodule;
73 module->library = name;
85 int success = g_module_symbol(module->
gmodule,
name, (gpointer)pointer);
101 void *gmodule = dlopen(library, RTLD_LAZY | RTLD_LOCAL);
105 module = (dt_gmodule_t *)malloc(sizeof(dt_gmodule_t));
106 module->gmodule = gmodule;
107 module->library = g_strdup(library);
#define IS_NULL_PTR(p)
C is way too permissive with !=, == and if(var) checks, which can mean too many things depending on w...
int dt_gmodule_symbol(dt_gmodule_t *module, const char *name, void(**pointer)(void))
dt_gmodule_t * dt_gmodule_open(const char *library)
int dt_gmodule_supported(void)
APPLE