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()
846 static void *DestroyModuleNode(void *module_info) in DestroyModuleNode() argument
855 p=(ModuleInfo *) module_info; in DestroyModuleNode()
879 *module_info; in IsModuleTreeInstantiated() local
886 module_info=AcquireModuleInfo((const char *) NULL,"[boot-strap]"); in IsModuleTreeInstantiated()
887 module_info->stealth=MagickTrue; in IsModuleTreeInstantiated()
888 status=AddValueToSplayTree(splay_tree,module_info->tag,module_info); in IsModuleTreeInstantiated()
1235 *module_info; in OpenModule() local
1250 module_info=(ModuleInfo *) GetModuleInfo(module,exception); in OpenModule()
1251 if (module_info != (ModuleInfo *) NULL) in OpenModule()
1293 module_info=AcquireModuleInfo(path,module_name); in OpenModule()
1294 module_info->handle=handle; in OpenModule()
1295 if (RegisterModule(module_info,exception) == (ModuleInfo *) NULL) in OpenModule()
1301 module_info->register_module=(size_t (*)(void)) lt_dlsym(handle,name); in OpenModule()
1302 if (module_info->register_module == (size_t (*)(void)) NULL) in OpenModule()
1310 (void *) module_info->register_module); in OpenModule()
1315 module_info->unregister_module=(void (*)(void)) lt_dlsym(handle,name); in OpenModule()
1316 if (module_info->unregister_module == (void (*)(void)) NULL) in OpenModule()
1324 (void *) module_info->unregister_module); in OpenModule()
1325 signature=module_info->register_module(); in OpenModule()
1420 static const ModuleInfo *RegisterModule(const ModuleInfo *module_info, in RegisterModule() argument
1426 assert(module_info != (ModuleInfo *) NULL); in RegisterModule()
1427 assert(module_info->signature == MagickCoreSignature); in RegisterModule()
1428 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",module_info->tag); in RegisterModule()
1431 status=AddValueToSplayTree(module_list,module_info->tag,module_info); in RegisterModule()
1434 "MemoryAllocationFailed","`%s'",module_info->tag); in RegisterModule()
1435 return(module_info); in RegisterModule()
1605 static MagickBooleanType UnregisterModule(const ModuleInfo *module_info, in UnregisterModule() argument
1611 assert(module_info != (const ModuleInfo *) NULL); in UnregisterModule()
1612 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",module_info->tag); in UnregisterModule()
1614 if (module_info->unregister_module == NULL) in UnregisterModule()
1616 module_info->unregister_module(); in UnregisterModule()
1617 if (lt_dlclose((ModuleHandle) module_info->handle) != 0) in UnregisterModule()
1620 "UnableToCloseModule","'%s': %s",module_info->tag,lt_dlerror()); in UnregisterModule()