2001-12-29 12:59:40 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
#ifndef _OUTSTAT_H
|
|
|
|
#define _OUTSTAT_H
|
|
|
|
|
2001-12-29 21:57:59 +00:00
|
|
|
typedef enum {CM_NONE, CM_INET, CM_ISDN, CM_POTS, MBFIDO, MBINDEX, MBFILE, MBINIT} CMODE;
|
2001-12-29 12:59:40 +00:00
|
|
|
|
2002-02-21 21:45:08 +00:00
|
|
|
struct _nodeshdr nodeshdr; /* Header record */
|
|
|
|
struct _nodes nodes; /* Nodes datarecord */
|
|
|
|
|
2001-12-29 12:59:40 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Linked list of nodes with mail in the outbound.
|
|
|
|
* Updated after each scan.
|
|
|
|
*/
|
|
|
|
typedef struct _alist
|
|
|
|
{
|
|
|
|
struct _alist *next; /* Next entry */
|
2001-12-29 21:57:59 +00:00
|
|
|
fidoaddr addr; /* Node address */
|
2001-12-29 12:59:40 +00:00
|
|
|
int flavors; /* ORed flavors of mail/files */
|
|
|
|
time_t time; /* Date/time of mail/files */
|
|
|
|
off_t size; /* Total size of mail/files */
|
|
|
|
callstat cst; /* Last call status */
|
|
|
|
unsigned long olflags; /* Nodelist online flags */
|
|
|
|
unsigned long moflags; /* Nodelist modem flags */
|
|
|
|
unsigned long diflags; /* Nodelist ISDN flags */
|
|
|
|
unsigned long ipflags; /* Nodelist TCP/IP flags */
|
|
|
|
int t1; /* First Txx flag */
|
|
|
|
int t2; /* Second Txx flag */
|
|
|
|
int callmode; /* Call method */
|
|
|
|
} _alist_l;
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-12-30 15:53:01 +00:00
|
|
|
/*
|
|
|
|
* Bitmasks for calling status
|
|
|
|
*/
|
|
|
|
#define F_NORMAL 0x0001
|
|
|
|
#define F_CRASH 0x0002
|
|
|
|
#define F_IMM 0x0004
|
|
|
|
#define F_HOLD 0x0008
|
|
|
|
#define F_FREQ 0x0010
|
|
|
|
#define F_POLL 0x0020
|
|
|
|
#define F_ISFLO 0x0040
|
|
|
|
#define F_ISPKT 0x0080
|
2002-06-24 20:34:07 +00:00
|
|
|
#define F_ISFIL 0x0100
|
|
|
|
#define F_CALL 0x0200
|
2001-12-30 15:53:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2001-12-29 12:59:40 +00:00
|
|
|
int each(faddr *, char, int, char *);
|
2001-12-29 21:57:59 +00:00
|
|
|
char *callstatus(int);
|
2001-12-29 12:59:40 +00:00
|
|
|
char *callmode(int);
|
|
|
|
int outstat(void);
|
2001-08-17 05:46:24 +00:00
|
|
|
|
|
|
|
#endif
|