1 #ident "$Id: conf_mg.h,v 4.11 2005/11/24 16:57:58 gert Exp $ Copyright (c) 1994 Gert Doering"
2 
3 /* all (dynamic) mgetty configuration is contained in this structure.
4  * It is initialized and loaded in conf_mg.c and accessed from mgetty.c
5  */
6 
7 extern struct conf_data_mgetty {
8     struct conf_data
9 	speed,					/* port speed */
10 	switchbd,				/* speed switch for fax rec.*/
11 	direct_line,				/* direct lines */
12 	blocking,				/* do blocking open */
13 
14 	port_owner,				/* "uucp" */
15 	port_group,				/* "modem" */
16 	port_mode,				/* "660" */
17 
18 	toggle_dtr,				/* toggle DTR for modem reset */
19 	toggle_dtr_waittime,			/* time to hold DTR low */
20 	need_dsr,				/* wait for DSR+CTS */
21 	data_only,				/* no fax */
22         fax_only,				/* no data */
23 	modem_type,				/* auto/c2.0/cls2/data */
24 	modem_quirks,				/* strange behaviourisms */
25 	init_chat,				/* modem initialization */
26 	force_init_chat,			/* for stubborn modems */
27 	post_init_chat,				/* for forgetful modems */
28 	data_flow,				/* flow ctl. in data mode */
29 	fax_send_flow,				/*   '' in fax rec mode */
30 	fax_rec_flow,				/*   '' in fax send mode */
31 
32 	modem_check_time,			/* modem still alive? */
33 	rings_wanted,				/* number of RINGs */
34 	msn_list,				/* ISDN MSNs (dist.ring) */
35 	getcnd_chat,				/* get caller ID (for ELINK)*/
36 	cnd_program,				/* accept caller? */
37 	answer_chat,				/* ATA...CONNECT...""...\n */
38 	answer_chat_timeout,			/* longer as S7! */
39 	autobauding,
40 
41 	ringback,				/* ringback enabled */
42 	ringback_time,				/* ringback time */
43 
44 	ignore_carrier,				/* do not clear CLOCAL */
45 	issue_file,				/* /etc/issue file */
46 	prompt_waittime,			/* ms wait before prompting */
47 	login_prompt,
48 	login_time,				/* max. time to log in */
49 	do_send_emsi,				/* send EMSI_REQ string */
50 	env_ttyprompt,				/* suppress login prompt */
51 	login_config,				/* login.config file name */
52 
53 	station_id,				/* local fax station ID */
54 	fax_min_speed,				/* minimum fax speed */
55 	fax_max_speed,				/* maximum fax sped */
56 	fax_server_file,			/* fax to send upon poll */
57 	diskspace,				/* min. free disk space */
58 	notify_mail,				/* fax mail goes to... */
59 	fax_owner,				/* "fax" */
60 	fax_group,				/* "staff" */
61 	fax_mode,				/* "660" */
62 	fax_spool_in,				/* "/var/fax/inc:/tmp" */
63 
64 	debug,					/* log level */
65 
66         statistics_chat,			/* get some call statist. */
67         statistics_file,			/* default: log file */
68 	gettydefs_tag,
69         termtype,				/* $TERM=... */
70 	end_of_config; } c;
71 
72 int mgetty_parse_args _PROTO(( int argc, char ** argv ));
73 void mgetty_get_config _PROTO(( char * port ));
74