summaryrefslogtreecommitdiffstats
path: root/scribus/cmserrorhandling.h
blob: 1e1a408b888e8789e7f09c35e2e317e7e1789032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef CMSERRORHANDLING_H
#define CMSERRORHANDLING_H

#include <setjmp.h>

/*!
\brief Jump buffer used by cmsErrorHandler, must be set with the setjmp() function
*      before cmsErrorHandler may be called
*/
extern jmp_buf cmsJumpBuffer;

/*!
\brief Simple error handler for use in conjunction with littlecms
\param ErrorCode error code issued by little cms
\param ErrorText error message corresponding to the error code
*/
int    cmsErrorHandler(int ErrorCode, const char *ErrorText);

#endif