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/ports.h

30 lines
661 B
C
Raw Normal View History

2002-02-22 21:15:21 +00:00
#ifndef _PORTS_H
#define _PORTS_H
/* $Id$ */
2002-02-22 21:15:21 +00:00
/*
* Linked list of available dialout ports.
*/
typedef struct _pp_list {
struct _pp_list *next;
char tty[7]; /* tty name of the port */
2005-10-11 20:49:41 +00:00
unsigned int mflags; /* Analogue modem flags */
unsigned int dflags; /* ISDN flags */
2002-02-22 21:15:21 +00:00
int locked; /* If port is locked */
2005-10-11 20:49:41 +00:00
int locktime; /* Time it is locked */
2002-02-22 21:15:21 +00:00
} pp_list;
struct _ttyinfohdr ttyinfohdr; /* TTY lines */
struct _ttyinfo ttyinfo;
void load_ports(void); /* Initialize portlist */
void unload_ports(void); /* Deinitialize portlist */
2002-02-22 21:15:21 +00:00
void check_ports(void); /* Check status of all ports */
#endif