XEmacs 21.2.28 "Hermes".
[chise/xemacs-chise.git.1] / src / console-stream.h
1 /* Define stream specific console, device, and frame object for XEmacs.
2    Copyright (C) 1995 Board of Trustees, University of Illinois.
3    Copyright (C) 1995 Free Software Foundation, Inc.
4
5 This file is part of XEmacs.
6
7 XEmacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
10 later version.
11
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with XEmacs; see the file COPYING.  If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 /* Synched up with: Not in FSF. */
23
24 /* Written by Ben Wing. */
25
26 #ifndef INCLUDED_console_stream_h_
27 #define INCLUDED_console_stream_h_
28
29 #include "console.h"
30
31 DECLARE_CONSOLE_TYPE (stream);
32
33 struct stream_console
34 {
35   FILE *in;
36   FILE *out;
37   FILE *err;
38   int needs_newline;
39 };
40
41 #define CONSOLE_STREAM_DATA(con) CONSOLE_TYPE_DATA (con, stream)
42
43 extern Lisp_Object Vterminal_console, Vterminal_frame, Vterminal_device;
44
45 Lisp_Object stream_semi_canonicalize_console_connection(Lisp_Object,
46                                                         Error_behavior);
47 Lisp_Object stream_canonicalize_console_connection(Lisp_Object,
48                                                    Error_behavior);
49 Lisp_Object stream_semi_canonicalize_device_connection(Lisp_Object,
50                                                        Error_behavior);
51 Lisp_Object stream_canonicalize_device_connection(Lisp_Object,
52                                                   Error_behavior);
53 #endif /* INCLUDED_console_stream_h_ */