summaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2014-10-23 13:56:52 -0400
committerDan Williams <dcbw@redhat.com>2014-10-23 13:39:08 -0500
commit07dba25404362fcfd21a5a4f76ee1f09c7422cf2 (patch)
tree25b7d564122df7beafaf34fbfa3d76c69f98b410 /introspection
parent0bc11cb7301972f771d85e5fc1737187d7453697 (diff)
downloadNetworkManager-07dba25404362fcfd21a5a4f76ee1f09c7422cf2.tar.gz
core: add PrimaryConnectionType property to NMManager (bgo #739080)
This will provide an extremely easy way for applications to find out what type of connection the system is currently using. They might want to do this to avoid using data if a phone is on a 3G connection, for example. Having this as a separate property provides at least two advantages: 1) it reduces code complexity for those wanting only this one simple piece of information 2) we could allow access to this property (but nothing else) to privilege-separated applications in the future This patch adds the missing nm_active_connection_get_connection_type() which was in the header file but never actually implemented. https://bugzilla.gnome.org/show_bug.cgi?id=739080
Diffstat (limited to 'introspection')
-rw-r--r--introspection/nm-manager.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/introspection/nm-manager.xml b/introspection/nm-manager.xml
index 05bcc99a36..a9bb6dcf14 100644
--- a/introspection/nm-manager.xml
+++ b/introspection/nm-manager.xml
@@ -327,6 +327,14 @@
</tp:docstring>
</property>
+ <property name="PrimaryConnectionType" type="s" access="read">
+ <tp:docstring>
+ The connection type of the "primary" active connection being
+ used to access the network. This is the same as the Type
+ property on the object indicated by PrimaryConnection.
+ </tp:docstring>
+ </property>
+
<property name="ActivatingConnection" type="o" access="read">
<tp:docstring>
The object path of an active connection that is currently