diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-04-29 16:34:38 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-06-09 18:11:25 +0200 |
commit | bbbf5229413f364dba8646ca582f41e7eef513d5 (patch) | |
tree | f26ff8965e852d088a5b56aa69ff0b3a63ddda21 /introspection | |
parent | acef8c6a1baf5fc5d03accfe4e1eb941570028a2 (diff) | |
download | NetworkManager-bbbf5229413f364dba8646ca582f41e7eef513d5.tar.gz |
core,libnm: add 'metered' property to NMDevice
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/nm-device.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/introspection/nm-device.xml b/introspection/nm-device.xml index 71b830f108..239358a1e7 100644 --- a/introspection/nm-device.xml +++ b/introspection/nm-device.xml @@ -145,6 +145,12 @@ The device MTU (maximum transmission unit). </tp:docstring> </property> + <property name="Metered" type="u" access="read" tp:type="NM_METERED"> + <tp:docstring> + Whether the amount of traffic flowing through the device is + subject to limitations, for example set by service providers. + </tp:docstring> + </property> <method name="Disconnect"> <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_device_disconnect"/> @@ -660,6 +666,34 @@ </tp:enumvalue> </tp:enum> + <tp:enum name="NM_METERED" type="u"> + <tp:enumvalue suffix="UNKNOWN" value="0"> + <tp:docstring> + The device metered status is unknown. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="YES" value="1"> + <tp:docstring> + The device is metered and the value was statically set. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="NO" value="2"> + <tp:docstring> + The device is not metered and the value was statically set. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="GUESS_YES" value="3"> + <tp:docstring> + The device is metered and the value was guessed. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="GUESS_NO" value="4"> + <tp:docstring> + The device is not metered and the value was guessed. + </tp:docstring> + </tp:enumvalue> + </tp:enum> + <tp:struct name="NM_DEVICE_STATE_REASON_STRUCT"> <tp:member type="u" name="state" tp:type="NM_DEVICE_STATE"> <tp:docstring> |