This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/mbtask/outstat.h

55 lines
1.6 KiB
C
Raw Normal View History

/* $Id$ */
2001-08-17 05:46:24 +00:00
#ifndef _OUTSTAT_H
#define _OUTSTAT_H
typedef enum {CM_NONE, CM_INET, CM_ISDN, CM_POTS, MBFIDO, MBINDEX, MBFILE, MBINIT} CMODE;
/*
* Linked list of nodes with mail in the outbound.
* Updated after each scan.
*/
typedef struct _alist
{
struct _alist *next; /* Next entry */
fidoaddr addr; /* Node address */
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;
/*
* Linked list of available dialout ports.
*/
typedef struct _pp_list {
struct _pp_list *next;
char tty[7]; /* tty name of the port */
unsigned long mflags; /* Analogue modem flags */
unsigned long dflags; /* ISDN flags */
int locked; /* If port is locked */
} pp_list;
struct _ttyinfohdr ttyinfohdr; /* TTY lines */
struct _ttyinfo ttyinfo;
2001-08-17 05:46:24 +00:00
int each(faddr *, char, int, char *);
char *callstatus(int);
char *callmode(int);
int outstat(void);
void load_ports(void);
2001-08-17 05:46:24 +00:00
#endif