bbslist.h 1.13 KB
Newer Older
1
2
/* $Id$ */

3
4
5
#ifndef _BBSLIST_H_
#define _BBSLIST_H_

6
#include "gen_defs.h"
7
#include "dirwrap.h"	/* MAX_PATH */
8
9
10
11
#include <time.h>

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

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

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

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

35
36
37
38
39
40
41
42
43
44
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;
45
	int				conn_type;
46
	int				id;
47
	int				reversed;
48
	int				screen_mode;
deuce's avatar
deuce committed
49
	int				nostatus;
50
51
52
	char			dldir[MAX_PATH];
	char			uldir[MAX_PATH];
	int				loglevel;
53
	int				bpsrate;
54
55
};

56
57
struct bbslist *show_bbslist(char* listpath, int mode, char *home);
void read_list(char *listpath, struct bbslist **list, int *i, int type, char* home);
deuce's avatar
deuce committed
58
59
void free_list(struct bbslist **list, int listcount);
void add_bbs(char *listpath, struct bbslist *bbs);
60
61

#endif