Mercurial > pidgin
diff libgaim/network.h @ 14696:34083fe39891
[gaim-migrate @ 17448]
From Paul Betts, NetworkManager integration. This will smartly disconnect and reconnect
accounts according to network availability. Probably needs some more tweaking.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sun, 08 Oct 2006 08:40:09 +0000 |
| parents | 645598a4ec04 |
| children |
line wrap: on
line diff
--- a/libgaim/network.h Sun Oct 08 04:31:39 2006 +0000 +++ b/libgaim/network.h Sun Oct 08 08:40:09 2006 +0000 @@ -188,10 +188,24 @@ unsigned short gaim_network_get_port_from_fd(int fd); /** + * Detects if there is an available Internet connection. Note that this call + * could block for the amount of time specified in inet_detect_timeout, so + * using it in a UI thread may cause uncomfortableness + * + * @return TRUE if the Internet is available + */ +gboolean gaim_network_is_available(void); + +/** * Initializes the network subsystem. */ void gaim_network_init(void); +/** + * Shuts down the network subsystem. + */ +void gaim_network_uninit(void); + /*@}*/ #ifdef __cplusplus
