bbslist.h 978 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#ifndef _BBSLIST_H_
#define _BBSLIST_H_

#include <time.h>

#define LIST_NAME_MAX	30
#define LIST_ADDR_MAX	30
#define MAX_USER_LEN	16
#define MAX_PASSWD_LEN	16

11
12
13
14
15
enum {
	 USER_BBSLIST
	,SYSTEM_BBSLIST
};

16
17
18
19
20
enum {
	 BBSLIST_SELECT
	,BBSLIST_EDIT
};

21
22
23
24
25
26
27
28
29
30
enum {
	 SCREEN_MODE_CURRENT
	,SCREEN_MODE_80X25
	,SCREEN_MODE_80X28
	,SCREEN_MODE_80X43
	,SCREEN_MODE_80X50
	,SCREEN_MODE_80X60
	,SCREEN_MODE_TERMINATOR
};

31
32
33
34
35
36
37
38
39
40
struct bbslist {
	char			name[LIST_NAME_MAX+1];
	char			addr[LIST_ADDR_MAX+1];
	short unsigned int port;
	time_t			added;
	time_t			connected;
	unsigned int	calls;
	char			user[MAX_USER_LEN+1];
	char			password[MAX_PASSWD_LEN+1];
	int				type;
41
	int				conn_type;
42
	int				id;
43
	int				reversed;
44
	int				screen_mode;
deuce's avatar
deuce committed
45
	int				nostatus;
46
47
};

48
struct bbslist *show_bbslist(int mode,char *path);
deuce's avatar
deuce committed
49
50
51
void read_list(char *listpath, struct bbslist **list, int *i, int type);
void free_list(struct bbslist **list, int listcount);
void add_bbs(char *listpath, struct bbslist *bbs);
52
53

#endif