gio: add network connectivity state to GNetworkMonitor

Desktop / GNOME / GLib - Dan Winship [gnome.org] - 5 December 2014 10:37 UTC

Add a property to GNetworkMonitor indicating the level of network connectivity: none/local, limited, stuck behind a portal, or full.

The default implementation just returns none or full depending on the
value of is-available.

https://bugzilla.gnome.org/show_bug.cgi?id=664562

8d08b82 gio: add network connectivity state to GNetworkMonitor
gio/gioenums.h | 24 +++++++++++++++++++
gio/gnetworkmonitor.c | 56 +++++++++++++++++++++++++++++++++++++++++++
gio/gnetworkmonitor.h | 35 ++++++++++++++-------------
gio/gnetworkmonitorbase.c | 24 +++++++++++++------
gio/tests/network-monitor.c | 11 +++++++++
5 files changed, 127 insertions(+), 23 deletions(-)

Upstream: git.gnome.org


  • Share