summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2014-08-12 14:35:34 +0200
committerMarti Maria <info@littlecms.com>2014-08-12 14:35:34 +0200
commit9c075b3e916e4478a98bebd92bcd219c51ef57f3 (patch)
tree1e3514cfd4373c00b2e2ccfa40e85c6ed6a580a6 /src
parente95828898a29a5da2c7c818ff385ab98ee0caea4 (diff)
downloadlcms2-9c075b3e916e4478a98bebd92bcd219c51ef57f3.tar.gz
Added a function to retrieve the iohandler of a given profile object
Diffstat (limited to 'src')
-rw-r--r--src/cmsio0.c8
-rw-r--r--src/lcms2.def3
2 files changed, 10 insertions, 1 deletions
diff --git a/src/cmsio0.c b/src/cmsio0.c
index 40f55d1..6fe23d4 100644
--- a/src/cmsio0.c
+++ b/src/cmsio0.c
@@ -453,6 +453,14 @@ cmsBool CMSEXPORT cmsCloseIOhandler(cmsIOHANDLER* io)
// -------------------------------------------------------------------------------------------------------
+cmsIOHANDLER* CMSEXPORT cmsGetProfileIOhandler(cmsHPROFILE hProfile)
+{
+ _cmsICCPROFILE* Icc = (_cmsICCPROFILE*)hProfile;
+
+ if (Icc == NULL) return NULL;
+ return Icc->IOhandler;
+}
+
// Creates an empty structure holding all required parameters
cmsHPROFILE CMSEXPORT cmsCreateProfilePlaceholder(cmsContext ContextID)
{
diff --git a/src/lcms2.def b/src/lcms2.def
index a1f69c4..a6fb54d 100644
--- a/src/lcms2.def
+++ b/src/lcms2.def
@@ -338,4 +338,5 @@ cmsMLUtranslationsCodes = cmsMLUtranslationsCodes
_cmsCreateMutex = _cmsCreateMutex
_cmsDestroyMutex = _cmsDestroyMutex
_cmsLockMutex = _cmsLockMutex
-_cmsUnlockMutex = _cmsUnlockMutex \ No newline at end of file
+_cmsUnlockMutex = _cmsUnlockMutex
+cmsGetProfileIOhandler = cmsGetProfileIOhandler