summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-09-21 13:52:25 +0100
committerRobin Watts <robin.watts@artifex.com>2013-02-15 11:10:08 +0000
commitdf3194a9139edeaa1293ad360cd5c50b176c0652 (patch)
treedcf5717d99829bb532a1951353c79c39626a9905 /include
parentcdd090f0ed2469a1f5a4fbbd8bf8ae38380f90fc (diff)
downloadlcms2-df3194a9139edeaa1293ad360cd5c50b176c0652.tar.gz
Fix LCMS threading issue with plugin registration.
When registering a plugin, allocations can be done. This can result in calls back to the user supplied malloc functions, which assume that a cmsContext will be supplied. In the current code there is no way to pass a cmsContext into the plugin registration. We therefore add a new function cmsPluginTHR that does take such a context.
Diffstat (limited to 'include')
-rw-r--r--include/lcms2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lcms2.h b/include/lcms2.h
index a21bdb8..5d74451 100644
--- a/include/lcms2.h
+++ b/include/lcms2.h
@@ -985,6 +985,7 @@ CMSAPI long int CMSEXPORT cmsfilelength(FILE* f);
// Plug-In registering ---------------------------------------------------------------------------------------------------
CMSAPI cmsBool CMSEXPORT cmsPlugin(void* Plugin);
+CMSAPI cmsBool CMSEXPORT cmsPluginTHR(cmsContext ContextID, void* Plugin);
CMSAPI void CMSEXPORT cmsUnregisterPlugins(void);
// Error logging ----------------------------------------------------------------------------------------------------------