diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-05-29 12:41:49 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-05 19:15:14 +0200 |
commit | 45ceba76924f184ed9e12ba3d35e00a55ad3a197 (patch) | |
tree | c413d3e29a64eb86340e964ec48e67d8a66c6f76 /introspection/org.freedesktop.ModemManager1.Modem.xml | |
parent | 212d00c529ee07131bf3b71a8759dca49292c059 (diff) |
api,introspection: 'SupportedModes' is now a list of possible combinations
Instead of just a mask of MMModemMode values, we now provide a list of the
allowed and preferred mode combinations supported by the modem. E.g.:
$> sudo mmcli -m 0
-------------------------
Modes | supported: 'allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| allowed: 2g, 3g; preferred: none
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 3g; preferred: 3g
| allowed: 4g; preferred: none
| allowed: 2g, 3g, 4g; preferred: none'
Diffstat (limited to 'introspection/org.freedesktop.ModemManager1.Modem.xml')
-rw-r--r-- | introspection/org.freedesktop.ModemManager1.Modem.xml | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/introspection/org.freedesktop.ModemManager1.Modem.xml b/introspection/org.freedesktop.ModemManager1.Modem.xml index 0f8364b7..7b43846e 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.xml @@ -410,14 +410,25 @@ <!-- SupportedModes: - Bitmask of <link linkend="MMModemMode">MMModemMode</link> values, - specifying the access technologies supported by the device. + This property exposes the supported mode combinations, given as an array of unsigned + integer pairs, where: - For POTS devices, only the - <link linkend="MM-MODEM-MODE-ANY:CAPS"><constant>MM_MODEM_MODE_ANY</constant></link> - mode will be returned. + <variablelist> + <varlistentry> + <listitem> + The first integer is a bitmask of <link linkend="MMModemMode">MMModemMode</link> values, + specifying the allowed modes. + </listitem> + </varlistentry> + <varlistentry> + <listitem> + The second integer is a single <link linkend="MMModemMode">MMModemMode</link>, which + specifies the preferred access technology, among the ones defined in the allowed modes. + </listitem> + </varlistentry> + </variablelist> --> - <property name="SupportedModes" type="u" access="read" /> + <property name="SupportedModes" type="a(uu)" access="read" /> <!-- AllowedModes: |