Lines Matching defs:ContextID

533 void* _cmsPluginMalloc(cmsContext ContextID, cmsUInt32Number size)
535 struct _cmsContext_struct* ctx = _cmsGetContext(ContextID);
539 if (ContextID == NULL) {
545 cmsSignalError(ContextID, cmsERROR_CORRUPTION_DETECTED, "NULL memory pool on context");
676 struct _cmsContext_struct* _cmsGetContext(cmsContext ContextID)
678 struct _cmsContext_struct* id = (struct _cmsContext_struct*) ContextID;
702 void* _cmsContextGetClientChunk(cmsContext ContextID, _cmsMemoryClient mc)
709 cmsSignalError(ContextID, cmsERROR_INTERNAL, "Bad context client -- possible corruption");
718 ctx = _cmsGetContext(ContextID);
735 void CMSEXPORT cmsUnregisterPluginsTHR(cmsContext ContextID)
737 _cmsRegisterMemHandlerPlugin(ContextID, NULL);
738 _cmsRegisterInterpPlugin(ContextID, NULL);
739 _cmsRegisterTagTypePlugin(ContextID, NULL);
740 _cmsRegisterTagPlugin(ContextID, NULL);
741 _cmsRegisterFormattersPlugin(ContextID, NULL);
742 _cmsRegisterRenderingIntentPlugin(ContextID, NULL);
743 _cmsRegisterParametricCurvesPlugin(ContextID, NULL);
744 _cmsRegisterMultiProcessElementPlugin(ContextID, NULL);
745 _cmsRegisterOptimizationPlugin(ContextID, NULL);
746 _cmsRegisterTransformPlugin(ContextID, NULL);
747 _cmsRegisterMutexPlugin(ContextID, NULL);
843 cmsContext CMSEXPORT cmsDupContext(cmsContext ContextID, void* NewUserData)
847 const struct _cmsContext_struct* src = _cmsGetContext(ContextID);
852 ctx = (struct _cmsContext_struct*) _cmsMalloc(ContextID, sizeof(struct _cmsContext_struct));
925 // The ContextID can no longer be used in any THR operation.
926 void CMSEXPORT cmsDeleteContext(cmsContext ContextID)
928 if (ContextID != NULL) {
930 struct _cmsContext_struct* ctx = (struct _cmsContext_struct*) ContextID;
940 cmsUnregisterPluginsTHR(ContextID);
973 // Returns the user data associated to the given ContextID, or NULL if no user data was attached on context creation
974 void* CMSEXPORT cmsGetContextUserData(cmsContext ContextID)
976 return _cmsContextGetClientChunk(ContextID, UserPtr);