2011-09-28 19:13:20 +00:00
|
|
|
/* $Id: getconnstatus.h,v 1.2 2011/05/23 20:22:41 nanard Exp $ */
|
|
|
|
/* MiniUPnP project
|
|
|
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
2012-03-01 01:44:38 +00:00
|
|
|
* (c) 2011 Thomas Bernard
|
2011-09-28 19:13:20 +00:00
|
|
|
* This software is subject to the conditions detailed
|
|
|
|
* in the LICENCE file provided within the distribution */
|
|
|
|
|
2012-09-20 20:52:51 +00:00
|
|
|
#ifndef GETCONNSTATUS_H_INCLUDED
|
|
|
|
#define GETCONNSTATUS_H_INCLUDED
|
2011-09-28 19:13:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the connection status
|
|
|
|
* return values :
|
|
|
|
* 0 - Unconfigured
|
|
|
|
* 1 - Connecting
|
|
|
|
* 2 - Connected
|
|
|
|
* 3 - PendingDisconnect
|
|
|
|
* 4 - Disconnecting
|
|
|
|
* 5 - Disconnected */
|
|
|
|
int
|
|
|
|
get_wan_connection_status(const char * ifname);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* return the same value as get_wan_connection_status()
|
|
|
|
* as a C string */
|
|
|
|
const char *
|
|
|
|
get_wan_connection_status_str(const char * ifname);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|