1 /*
2  * status.h: header for status.c
3  *
4  * Copyright 1990 Michael Sandrof
5  * Copyright 1997 EPIC Software Labs
6  * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
7  */
8 
9 #ifndef __status_h__
10 #define __status_h__
11 
12 struct 	WindowStru;
13 
14 #define MAX_FUNCTIONS 40
15 
16 typedef struct  status_line {
17         char *		raw;
18         char *		format;
19         const char *	(*func[MAX_FUNCTIONS]) (struct WindowStru *, int, int);
20 	int		map[MAX_FUNCTIONS];
21 	int		key[MAX_FUNCTIONS];
22         int   		count;
23         char *		result;
24 } Status_line;
25 
26 typedef struct  status_stuff {
27         Status_line     line[3];
28         int             double_status;
29         char            *special;
30 } Status;
31 
32 extern	Status	main_status;
33 
34 	char *	convert_sub_format (const char *, char);
35 	int	make_status 	(struct WindowStru *, int);	/* Don't call */
36 	void	build_status 	(const void *);
37 	int	permit_status_update	(int);
38 	void	rebuild_a_status (struct WindowStru *);		/* Don't call */
39 
40 #endif /* _STATUS_H_ */
41