xref: /plan9/sys/src/cmd/gs/src/istream.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: istream.h,v 1.5 2002/06/16 04:47:10 lpd Exp $ */
18 /* Interpreter support procedures for streams */
19 /* Requires scommon.h */
20 
21 #ifndef istream_INCLUDED
22 #  define istream_INCLUDED
23 
24 /* Procedures exported by zfproc.c */
25 
26 	/* for zfilter.c - procedure stream initialization */
27 int sread_proc(ref *, stream **, gs_ref_memory_t *);
28 int swrite_proc(ref *, stream **, gs_ref_memory_t *);
29 
30 	/* for interp.c, zfileio.c, zpaint.c - handle a procedure */
31 	/* callback or an interrupt */
32 int s_handle_read_exception(i_ctx_t *, int, const ref *, const ref *,
33 			    int, op_proc_t);
34 int s_handle_write_exception(i_ctx_t *, int, const ref *, const ref *,
35 			     int, op_proc_t);
36 
37 #endif /* istream_INCLUDED */
38