summaryrefslogtreecommitdiffstats
path: root/source3/include/vt_mode.h
blob: 85b481122eee59e743766e14eaa729c48bb3b1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* vt_mode.h */
/*
support vtp-sessions

written by Christian A. Lademann <cal@zls.com>
*/

/*
02.05.95:cal:ported to samba-1.9.13
*/

#ifndef	__vt_mode_h__
#	define	__vt_mode_h__

#	define	VT_CLOSED	0
#	define	VT_OPEN		1

#	define	MS_NONE		0
#	define	MS_PTY		1
#	define	MS_STREAM	2
#	define	MS_VTY		3

#	define	VT_MAXREAD	32


#	undef	EXTERN

#	ifndef __vt_mode_c__
#		define	EXTERN	extern
#		define	DEFAULT(v)
#	else
#		define	EXTERN
#		define	DEFAULT(v)	=(v)
#	endif

	EXTERN int	VT_Status		DEFAULT(VT_CLOSED),
				VT_Fd			DEFAULT(-1),
				VT_ChildPID		DEFAULT(-1);

	EXTERN BOOL	VT_Mode			DEFAULT(False),
				VT_ChildDied	DEFAULT(False);

	EXTERN char	*VT_Line		DEFAULT(NULL);

#	undef	EXTERN


#endif /* __vt_mode_h__ */