diff options
author | Marti Maria <info@littlecms.com> | 2014-08-12 14:35:34 +0200 |
---|---|---|
committer | Marti Maria <info@littlecms.com> | 2014-08-12 14:35:34 +0200 |
commit | 9c075b3e916e4478a98bebd92bcd219c51ef57f3 (patch) | |
tree | 1e3514cfd4373c00b2e2ccfa40e85c6ed6a580a6 /src | |
parent | e95828898a29a5da2c7c818ff385ab98ee0caea4 (diff) | |
download | lcms2-9c075b3e916e4478a98bebd92bcd219c51ef57f3.tar.gz |
Added a function to retrieve the iohandler of a given profile object
Diffstat (limited to 'src')
-rw-r--r-- | src/cmsio0.c | 8 | ||||
-rw-r--r-- | src/lcms2.def | 3 |
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
|