1 /*
2  * edit.h: header for edit.c
3  *
4  * Written By Michael Sandrof
5  *
6  * Copyright (c) 1990 Michael Sandrof.
7  * Copyright (c) 1991, 1992 Troy Rollo.
8  * Copyright (c) 1992-2001 Matthew R. Green.
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  * 1. Redistributions of source code must retain the above copyright
15  *    notice, this list of conditions and the following disclaimer.
16  * 2. Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the
18  *    documentation and/or other materials provided with the distribution.
19  * 3. The name of the author may not be used to endorse or promote products
20  *    derived from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
23  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32  * SUCH DAMAGE.
33  *
34  * @(#)$eterna: edit.h,v 1.27 2001/09/06 17:12:43 mrg Exp $
35  */
36 
37 #ifndef __edit_h_
38 #define __edit_h_
39 
40 extern	u_char	*sent_nick;
41 extern	u_char	*sent_body;
42 extern	u_char	*recv_nick;
43 
44 	void	load _((u_char *, u_char *, u_char *));
45 	void	send_text _((u_char *, u_char *, u_char *));
46 	void	eval_inputlist _((u_char *, u_char *));
47 	void	parse_command _((u_char *, int, u_char *));
48 	void	parse_line _((u_char *, u_char *, u_char *, int, int, int));
49 	void	edit_char _((u_int));
50 	void	execute_timer _((void));
51 	void	ison_now _((WhoisStuff *, u_char *, u_char *));
52 	void	redirect_msg _((u_char *, u_char *));
53 	void	query _((u_char *, u_char *, u_char *));
54 	void	forward_character _((u_int, u_char *));
55 	void	backward_character _((u_int, u_char *));
56 	void	forward_history _((u_int, u_char *));
57 	void	backward_history _((u_int, u_char *));
58 	void	toggle_insert_mode _((u_int, u_char *));
59 	void	send_line _((u_int, u_char *));
60 	void	meta1_char _((u_int, u_char *));
61 	void	meta2_char _((u_int, u_char *));
62 	void	meta3_char _((u_int, u_char *));
63 	void	meta4_char _((u_int, u_char *));
64 	void	meta5_char _((u_int, u_char *));
65 	void	meta6_char _((u_int, u_char *));
66 	void	meta7_char _((u_int, u_char *));
67 	void	meta8_char _((u_int, u_char *));
68 	void	quote_char _((u_int, u_char *));
69 	void	type_text _((u_int, u_char *));
70 	void	parse_text _((u_int, u_char *));
71 	void	irc_clear_screen _((u_int, u_char *));
72 	void	command_completion _((u_int, u_char *));
73 	void	e_quit _((u_char *, u_char *, u_char *));
74 	int	check_wait_command _((u_char *));
75 	u_char	*do_channel _((u_char *, int));
76 
77 #define AWAY_ONE 0
78 #define AWAY_ALL 1
79 
80 #define STACK_POP 0
81 #define STACK_PUSH 1
82 #define STACK_SWAP 2
83 
84 /* a structure for the timer list */
85 typedef struct	timerlist_stru
86 {
87 	int	ref;
88 	int	in_on_who;
89 	time_t	time;
90 	int	server;
91 	u_char	*command;
92 	struct	timerlist_stru *next;
93 }	TimerList;
94 
95 extern TimerList *PendingTimers;
96 
97 #endif /* __edit_h_ */
98