1 /* stream.h - internal definiton for the STREAM object
2 * Copyright (C) 2002-2012 Free Software Foundation, Inc.
6 * This file is part of OpenCDK.
8 * The OpenCDK library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>
26 /* The default buffer size for the stream. */
27 #define STREAM_BUFSIZE 8192
40 /* Type definition for the filter function. */
41 typedef cdk_error_t (*filter_fnct_t
) (void *uint8_t, int ctl
, FILE * in
,
44 /* The stream filter context structure. */
45 struct stream_filter_s
47 struct stream_filter_s
*next
;
56 compress_filter_t zfx
;
71 /* The stream context structure. */
74 struct stream_filter_s
*filters
;
86 unsigned compressed
:3;
97 unsigned int fp_ref
:1;
98 struct cdk_stream_cbs_s cbs
;
102 #endif /* CDK_STREAM_H */