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