bbslist.h 1012 Bytes
Newer Older
1
2
/* $Id$ */

3
4
5
#ifndef _BBSLIST_H_
#define _BBSLIST_H_

6
#include "gen_defs.h"
7
8
9
10
#include <time.h>

#define LIST_NAME_MAX	30
#define LIST_ADDR_MAX	30
11
#define MAX_USER_LEN	30
12
13
#define MAX_PASSWD_LEN	16

14
15
16
17
18
enum {
	 USER_BBSLIST
	,SYSTEM_BBSLIST
};

19
20
21
22
23
enum {
	 BBSLIST_SELECT
	,BBSLIST_EDIT
};

24
25
26
27
28
29
30
31
32
33
enum {
	 SCREEN_MODE_CURRENT
	,SCREEN_MODE_80X25
	,SCREEN_MODE_80X28
	,SCREEN_MODE_80X43
	,SCREEN_MODE_80X50
	,SCREEN_MODE_80X60
	,SCREEN_MODE_TERMINATOR
};

34
35
36
37
38
39
40
41
42
43
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;
44
	int				conn_type;
45
	int				id;
46
	int				reversed;
47
	int				screen_mode;
deuce's avatar
deuce committed
48
	int				nostatus;
49
50
};

51
struct bbslist *show_bbslist(int mode,char *path);
deuce's avatar
deuce committed
52
53
54
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);
55
56

#endif