Lines Matching defs:ContextID

113 cmsBool   _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase* Plugin);
120 void* _cmsMallocDefaultFn(cmsContext ContextID, cmsUInt32Number size)
126 cmsUNUSED_PARAMETER(ContextID);
131 void* _cmsMallocZeroDefaultFn(cmsContext ContextID, cmsUInt32Number size)
133 void *pt = _cmsMalloc(ContextID, size);
143 void _cmsFreeDefaultFn(cmsContext ContextID, void *Ptr)
150 cmsUNUSED_PARAMETER(ContextID);
156 void* _cmsReallocDefaultFn(cmsContext ContextID, void* Ptr, cmsUInt32Number size)
163 cmsUNUSED_PARAMETER(ContextID);
170 void* _cmsCallocDefaultFn(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size)
187 return _cmsMallocZero(ContextID, Total);
192 void* _cmsDupDefaultFn(cmsContext ContextID, const void* Org, cmsUInt32Number size)
198 mem = _cmsMalloc(ContextID, size);
257 cmsBool _cmsRegisterMemHandlerPlugin(cmsContext ContextID, cmsPluginBase *Data)
267 struct _cmsContext_struct* ctx = ( struct _cmsContext_struct*) ContextID;
270 if (ContextID != NULL) {
282 ptr = (_cmsMemPluginChunkType*) _cmsContextGetClientChunk(ContextID, MemPlugin);
291 void* CMSEXPORT _cmsMalloc(cmsContext ContextID, cmsUInt32Number size)
293 _cmsMemPluginChunkType* ptr = (_cmsMemPluginChunkType*) _cmsContextGetClientChunk(ContextID, MemPlugin);
294 return ptr ->MallocPtr(ContextID, size);
298 void* CMSEXPORT _cmsMallocZero(cmsContext ContextID, cmsUInt32Number size)
300 _cmsMemPluginChunkType* ptr = (_cmsMemPluginChunkType*) _cmsContextGetClientChunk(ContextID, MemPlugin);
301 return ptr->MallocZeroPtr(ContextID, size);
305 void* CMSEXPORT _cmsCalloc(cmsContext ContextID, cmsUInt32Number num, cmsUInt32Number size)
307 _cmsMemPluginChunkType* ptr = (_cmsMemPluginChunkType*) _cmsContextGetClientChunk(ContextID, MemPlugin);
308 return ptr->CallocPtr(ContextID, num, size);
312 void* CMSEXPORT _cmsRealloc(cmsContext ContextID, void* Ptr, cmsUInt32Number size)
314 _cmsMemPluginChunkType* ptr = (_cmsMemPluginChunkType*) _cmsContextGetClientChunk(ContextID, MemPlugin);
315 return ptr->ReallocPtr(ContextID, Ptr, size);
319 void CMSEXPORT _cmsFree(cmsContext ContextID, void* Ptr)
322 _cmsMemPluginChunkType* ptr = (_cmsMemPluginChunkType*) _cmsContextGetClientChunk(ContextID, MemPlugin);
323 ptr ->FreePtr(ContextID, Ptr);
328 void* CMSEXPORT _cmsDupMem(cmsContext ContextID, const void* Org, cmsUInt32Number size)
330 _cmsMemPluginChunkType* ptr = (_cmsMemPluginChunkType*) _cmsContextGetClientChunk(ContextID, MemPlugin);
331 return ptr ->DupPtr(ContextID, Org, size);
341 _cmsSubAllocator_chunk* _cmsCreateSubAllocChunk(cmsContext ContextID, cmsUInt32Number Initial)
350 chunk = (_cmsSubAllocator_chunk*) _cmsMallocZero(ContextID, sizeof(_cmsSubAllocator_chunk));
354 chunk ->Block = (cmsUInt8Number*) _cmsMalloc(ContextID, Initial);
358 _cmsFree(ContextID, chunk);
371 _cmsSubAllocator* _cmsCreateSubAlloc(cmsContext ContextID, cmsUInt32Number Initial)
376 sub = (_cmsSubAllocator*) _cmsMallocZero(ContextID, sizeof(_cmsSubAllocator));
379 sub ->ContextID = ContextID;
381 sub ->h = _cmsCreateSubAllocChunk(ContextID, Initial);
383 _cmsFree(ContextID, sub);
399 if (chunk->Block != NULL) _cmsFree(sub ->ContextID, chunk->Block);
400 _cmsFree(sub ->ContextID, chunk);
404 _cmsFree(sub ->ContextID, sub);
425 chunk = _cmsCreateSubAllocChunk(sub -> ContextID, newSize);
479 static void DefaultLogErrorHandlerFunction(cmsContext ContextID, cmsUInt32Number ErrorCode, const char *Text);
504 void DefaultLogErrorHandlerFunction(cmsContext ContextID, cmsUInt32Number ErrorCode, const char *Text)
509 cmsUNUSED_PARAMETER(ContextID);
515 void CMSEXPORT cmsSetLogErrorHandlerTHR(cmsContext ContextID, cmsLogErrorHandlerFunction Fn)
517 _cmsLogErrorChunkType* lhg = (_cmsLogErrorChunkType*) _cmsContextGetClientChunk(ContextID, Logger);
536 void CMSEXPORT cmsSignalError(cmsContext ContextID, cmsUInt32Number ErrorCode, const char *ErrorText, ...)
548 lhg = (_cmsLogErrorChunkType*) _cmsContextGetClientChunk(ContextID, Logger);
550 lhg ->LogErrorHandler(ContextID, ErrorCode, Buffer);
624 cmsBool _cmsRegisterMutexPlugin(cmsContext ContextID, cmsPluginBase* Data)
627 _cmsMutexPluginChunkType* ctx = ( _cmsMutexPluginChunkType*) _cmsContextGetClientChunk(ContextID, MutexPlugin);
654 void* CMSEXPORT _cmsCreateMutex(cmsContext ContextID)
656 _cmsMutexPluginChunkType* ptr = (_cmsMutexPluginChunkType*) _cmsContextGetClientChunk(ContextID, MutexPlugin);
660 return ptr ->CreateMutexPtr(ContextID);
663 void CMSEXPORT _cmsDestroyMutex(cmsContext ContextID, void* mtx)
665 _cmsMutexPluginChunkType* ptr = (_cmsMutexPluginChunkType*) _cmsContextGetClientChunk(ContextID, MutexPlugin);
669 ptr ->DestroyMutexPtr(ContextID, mtx);
673 cmsBool CMSEXPORT _cmsLockMutex(cmsContext ContextID, void* mtx)
675 _cmsMutexPluginChunkType* ptr = (_cmsMutexPluginChunkType*) _cmsContextGetClientChunk(ContextID, MutexPlugin);
679 return ptr ->LockMutexPtr(ContextID, mtx);
682 void CMSEXPORT _cmsUnlockMutex(cmsContext ContextID, void* mtx)
684 _cmsMutexPluginChunkType* ptr = (_cmsMutexPluginChunkType*) _cmsContextGetClientChunk(ContextID, MutexPlugin);
688 ptr ->UnlockMutexPtr(ContextID, mtx);