xref: /haiku/src/add-ons/translators/jpeg/be_jerror.h (revision 9f81ca838ce7b92b5689e57d3f86765db4705a7b)
1*e4bd005dSIngo Weinhold /*
2*e4bd005dSIngo Weinhold  * Copyright 2013, Haiku, Inc.
3*e4bd005dSIngo Weinhold  * Distributed under the terms of the MIT License.
4*e4bd005dSIngo Weinhold  */
5*e4bd005dSIngo Weinhold #ifndef B_JERROR_H
6*e4bd005dSIngo Weinhold #define B_JERROR_H
7*e4bd005dSIngo Weinhold 
8*e4bd005dSIngo Weinhold 
9*e4bd005dSIngo Weinhold #include <stdio.h>
10*e4bd005dSIngo Weinhold 	// for jpeglib.h -- it doesn't seem to be self-contained
11*e4bd005dSIngo Weinhold #include <setjmp.h>
12*e4bd005dSIngo Weinhold 
13*e4bd005dSIngo Weinhold #include <jpeglib.h>
14*e4bd005dSIngo Weinhold 
15*e4bd005dSIngo Weinhold 
16*e4bd005dSIngo Weinhold class TranslatorSettings;
17*e4bd005dSIngo Weinhold 
18*e4bd005dSIngo Weinhold 
19*e4bd005dSIngo Weinhold struct be_jpeg_error_mgr : jpeg_error_mgr {
20*e4bd005dSIngo Weinhold 	const jmp_buf*	long_jump_buffer;
21*e4bd005dSIngo Weinhold };
22*e4bd005dSIngo Weinhold 
23*e4bd005dSIngo Weinhold 
24*e4bd005dSIngo Weinhold struct jpeg_error_mgr* be_jpeg_std_error(be_jpeg_error_mgr* err,
25*e4bd005dSIngo Weinhold 	TranslatorSettings* settings, const jmp_buf* longJumpBuffer);
26*e4bd005dSIngo Weinhold 
27*e4bd005dSIngo Weinhold 
28*e4bd005dSIngo Weinhold #endif	// B_JERROR_H
29