Lines Matching refs:module_info
142 *module_info; in AcquireModuleInfo() local
144 module_info=(ModuleInfo *) AcquireCriticalMemory(sizeof(*module_info)); in AcquireModuleInfo()
145 (void) memset(module_info,0,sizeof(*module_info)); in AcquireModuleInfo()
147 module_info->path=ConstantString(path); in AcquireModuleInfo()
149 module_info->tag=ConstantString(tag); in AcquireModuleInfo()
150 module_info->timestamp=time(0); in AcquireModuleInfo()
151 module_info->signature=MagickCoreSignature; in AcquireModuleInfo()
152 return(module_info); in AcquireModuleInfo()
218 *module_info; in GetModuleInfo() local
230 module_info=(ModuleInfo *) GetNextValueInSplayTree(module_list); in GetModuleInfo()
232 return(module_info); in GetModuleInfo()
234 module_info=(ModuleInfo *) GetValueFromSplayTree(module_list,tag); in GetModuleInfo()
236 return(module_info); in GetModuleInfo()
848 static void *DestroyModuleNode(void *module_info) in DestroyModuleNode() argument
857 p=(ModuleInfo *) module_info; in DestroyModuleNode()
881 *module_info; in IsModuleTreeInstantiated() local
888 module_info=AcquireModuleInfo((const char *) NULL,"[boot-strap]"); in IsModuleTreeInstantiated()
889 module_info->stealth=MagickTrue; in IsModuleTreeInstantiated()
890 status=AddValueToSplayTree(splay_tree,module_info->tag,module_info); in IsModuleTreeInstantiated()
1236 *module_info; in OpenModule() local
1251 module_info=(ModuleInfo *) GetModuleInfo(module,exception); in OpenModule()
1252 if (module_info != (ModuleInfo *) NULL) in OpenModule()
1294 module_info=AcquireModuleInfo(path,module_name); in OpenModule()
1295 module_info->handle=handle; in OpenModule()
1296 if (RegisterModule(module_info,exception) == (ModuleInfo *) NULL) in OpenModule()
1302 module_info->register_module=(size_t (*)(void)) lt_dlsym(handle,name); in OpenModule()
1303 if (module_info->register_module == (size_t (*)(void)) NULL) in OpenModule()
1311 (void *) module_info->register_module); in OpenModule()
1316 module_info->unregister_module=(void (*)(void)) lt_dlsym(handle,name); in OpenModule()
1317 if (module_info->unregister_module == (void (*)(void)) NULL) in OpenModule()
1325 (void *) module_info->unregister_module); in OpenModule()
1326 signature=module_info->register_module(); in OpenModule()
1421 static const ModuleInfo *RegisterModule(const ModuleInfo *module_info, in RegisterModule() argument
1427 assert(module_info != (ModuleInfo *) NULL); in RegisterModule()
1428 assert(module_info->signature == MagickCoreSignature); in RegisterModule()
1429 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",module_info->tag); in RegisterModule()
1432 status=AddValueToSplayTree(module_list,module_info->tag,module_info); in RegisterModule()
1435 "MemoryAllocationFailed","`%s'",module_info->tag); in RegisterModule()
1436 return(module_info); in RegisterModule()
1606 static MagickBooleanType UnregisterModule(const ModuleInfo *module_info, in UnregisterModule() argument
1612 assert(module_info != (const ModuleInfo *) NULL); in UnregisterModule()
1613 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",module_info->tag); in UnregisterModule()
1615 if (module_info->unregister_module == NULL) in UnregisterModule()
1617 module_info->unregister_module(); in UnregisterModule()
1618 if (lt_dlclose((ModuleHandle) module_info->handle) != 0) in UnregisterModule()
1621 "UnableToCloseModule","'%s': %s",module_info->tag,lt_dlerror()); in UnregisterModule()