diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-07 09:58:32 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-07 09:58:32 +0000 |
| commit | 048c8302fe83c68e8eb115118fd69ea35226224a (patch) | |
| tree | fc3799269bb60db1ba0d19395900dcedee41bb74 /src/lib/openjp2/cio.h | |
| parent | a7b051b172b7d8d1171729732e5b29aa80600d08 (diff) | |
[trunk] un-deprecated opj_stream_destroy API, import patch manually
In some case user still want to be able to call opj_stream_destroy.
Fixes issue 227
Diffstat (limited to 'src/lib/openjp2/cio.h')
| -rw-r--r-- | src/lib/openjp2/cio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/openjp2/cio.h b/src/lib/openjp2/cio.h index 8e162a16..edbc2009 100644 --- a/src/lib/openjp2/cio.h +++ b/src/lib/openjp2/cio.h @@ -86,6 +86,13 @@ typedef struct opj_stream_private void * m_user_data; /** + * Pointer to function to free m_user_data (NULL at initialization) + * when destroying the stream. If pointer is NULL the function is not + * called and the m_user_data is not freed (even if non-NULL). + */ + opj_stream_free_user_data_fn m_free_user_data_fn; + + /** * User data length */ OPJ_UINT64 m_user_data_length; |
