Lines Matching refs:Plugin
77 cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
194 // Auxiliar to fill memory management functions from plugin (or context 0 defaults)
195 void _cmsInstallAllocFunctions(cmsPluginMemHandler* Plugin, _cmsMemPluginChunkType* ptr)
197 if (Plugin == NULL) {
203 ptr ->MallocPtr = Plugin -> MallocPtr;
204 ptr ->FreePtr = Plugin -> FreePtr;
205 ptr ->ReallocPtr = Plugin -> ReallocPtr;
212 if (Plugin ->MallocZeroPtr != NULL) ptr ->MallocZeroPtr = Plugin -> MallocZeroPtr;
213 if (Plugin ->CallocPtr != NULL) ptr ->CallocPtr = Plugin -> CallocPtr;
214 if (Plugin ->DupPtr != NULL) ptr ->DupPtr = Plugin -> DupPtr;
223 cmsPluginMemHandler* Plugin = (cmsPluginMemHandler*) Data;
241 if (Plugin -> MallocPtr == NULL ||
242 Plugin -> FreePtr == NULL ||
243 Plugin -> ReallocPtr == NULL) return FALSE;
250 _cmsInstallAllocFunctions(Plugin, ptr);
257 cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin)
326 void _cmsInstallAllocFunctions(cmsPluginMemHandler* Plugin, _cmsMemPluginChunkType* ptr)
328 if (Plugin == NULL) {
334 ptr ->MallocPtr = Plugin -> MallocPtr;
335 ptr ->FreePtr = Plugin -> FreePtr;
336 ptr ->ReallocPtr = Plugin -> ReallocPtr;
343 if (Plugin ->MallocZeroPtr != NULL) ptr ->MallocZeroPtr = Plugin -> MallocZeroPtr;
344 if (Plugin ->CallocPtr != NULL) ptr ->CallocPtr = Plugin -> CallocPtr;
345 if (Plugin ->DupPtr != NULL) ptr ->DupPtr = Plugin -> DupPtr;
643 cmsPluginMutex* Plugin = (cmsPluginMutex*) Data;
657 if (Plugin ->CreateMutexPtr == NULL || Plugin ->DestroyMutexPtr == NULL ||
658 Plugin ->LockMutexPtr == NULL || Plugin ->UnlockMutexPtr == NULL) return FALSE;
661 ctx->CreateMutexPtr = Plugin->CreateMutexPtr;
662 ctx->DestroyMutexPtr = Plugin ->DestroyMutexPtr;
663 ctx ->LockMutexPtr = Plugin ->LockMutexPtr;
664 ctx ->UnlockMutexPtr = Plugin ->UnlockMutexPtr;