-
Notifications
You must be signed in to change notification settings - Fork 0
/
bsy.h
58 lines (49 loc) · 1.13 KB
/
bsy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* $Id: bsy.h,v 2.2 2003/08/26 16:06:26 stream Exp $
*
* $Log: bsy.h,v $
* Revision 2.2 2003/08/26 16:06:26 stream
* Reload configuration on-the fly.
*
* Warning! Lot of code can be broken (Perl for sure).
* Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl)
*
* Revision 2.1 2003/02/28 20:39:08 gul
* Code cleanup:
* change "()" to "(void)" in function declarations;
* change C++-style comments to C-style
*
* Revision 2.0 2001/01/10 12:12:37 gul
* Binkd is under CVS again
*
*
*/
#ifndef _bsy_h
#define _bsy_h
typedef unsigned char bsy_t;
#define F_BSY ((bsy_t)'b')
#define F_CSY ((bsy_t)'c')
/*
*/
void bsy_init(void);
/*
* Test & add a busy-flag. 1 -- ok, 0 -- failed
*/
int bsy_add(FTN_ADDR *fa, bsy_t bt, BINKD_CONFIG *config);
/*
* Test a busy-flag. 1 -- free, 0 -- busy
*/
int bsy_test(FTN_ADDR *fa, bsy_t bt, BINKD_CONFIG *config);
/*
*/
void bsy_remove(FTN_ADDR *fa, bsy_t bt, BINKD_CONFIG *config);
/*
* For exitlist...
*/
void bsy_remove_all(BINKD_CONFIG *config);
/*
* Touchs all our .bsy's if needed
*/
void bsy_touch (BINKD_CONFIG *config);
#define BSY_TOUCH_DELAY 60
#endif