1 | #ifndef foointerfacehfoo |
---|
2 | #define foointerfacehfoo |
---|
3 | |
---|
4 | /* $Id: interface.h,v 1.1.1.1 2004-04-09 20:08:58 amb Exp $ */ |
---|
5 | |
---|
6 | /* |
---|
7 | * This file is part of ifplugd. |
---|
8 | * |
---|
9 | * ifplugd is free software; you can redistribute it and/or modify it |
---|
10 | * under the terms of the GNU General Public License as published by |
---|
11 | * the Free Software Foundation; either version 2 of the License, or |
---|
12 | * (at your option) any later version. |
---|
13 | * |
---|
14 | * ifplugd is distributed in the hope that it will be useful, but |
---|
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | * General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with ifplugd; if not, write to the Free Software Foundation, |
---|
21 | * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
---|
22 | */ |
---|
23 | |
---|
24 | int interface_auto_up; |
---|
25 | int interface_do_message; |
---|
26 | |
---|
27 | typedef enum { IFSTATUS_UP, IFSTATUS_DOWN, IFSTATUS_ERR } interface_status_t; |
---|
28 | |
---|
29 | void interface_up(int fd, char *iface); |
---|
30 | |
---|
31 | interface_status_t interface_detect_beat_mii(int fd, char *iface); |
---|
32 | interface_status_t interface_detect_beat_priv(int fd, char *iface); |
---|
33 | interface_status_t interface_detect_beat_ethtool(int fd, char *iface); |
---|
34 | interface_status_t interface_detect_beat_wlan(int fd, char *iface); |
---|
35 | |
---|
36 | #endif |
---|