1 /* Copyright (C) 2001-2019 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied,
8    modified or distributed except as expressly authorized under the terms
9    of the license contained in the file LICENSE in this distribution.
10 
11    Refer to licensing information at http://www.artifex.com or contact
12    Artifex Software, Inc.,  1305 Grant Avenue - Suite 200, Novato,
13    CA 94945, U.S.A., +1(415)492-9861, for further information.
14 */
15 
16 
17 /* Definitions for ByteTranslate filters */
18 /* Requires scommon.h; strimpl.h if any templates are referenced */
19 
20 #ifndef sbtx_INCLUDED
21 #  define sbtx_INCLUDED
22 
23 #include "scommon.h"
24 
25 /* ByteTranslateEncode/Decode */
26 typedef struct stream_BT_state_s {
27     stream_state_common;
28     byte table[256];
29 } stream_BT_state;
30 typedef stream_BT_state stream_BTE_state;
31 typedef stream_BT_state stream_BTD_state;
32 
33 #define private_st_BT_state()	/* in sfilter1.c */\
34   gs_private_st_simple(st_BT_state, stream_BT_state,\
35     "ByteTranslateEncode/Decode state")
36 extern const stream_template s_BTE_template;
37 extern const stream_template s_BTD_template;
38 
39 #endif /* sbtx_INCLUDED */
40