api,modem: deprecate ListBearers() method

This method is completely unnecessary as we have the readable Bearers
property already in place, so let's deprecate it.

Worth noting that the mm_modem_list_bearers() async/sync methods in
libmm-glib were not really using the ListBearers() method anyway, they
are using the property directly. These methods are NOT deprecated,
because they allow us to get a list of MMBearer objects, instead of
just the list of DBus paths that we get when reading the Bearers
property directly.

We also remove --list-bearers from the mmcli operation list as we have
already the same information in the standard modem output.
This commit is contained in:
Aleksander Morgado
2018-11-01 21:46:37 +01:00
committed by Dan Williams
parent a15193b7ca
commit 72674225ca
2 changed files with 3 additions and 68 deletions

View File

@@ -42,6 +42,9 @@
List configured packet data bearers (EPS Bearers, PDP Contexts, or
CDMA2000 Packet Data Sessions).
Deprecated: 1.10.0. Use #org.freedesktop.ModemManager1.Modem:Bearers
property instead.
-->
<method name="ListBearers">
<arg name="bearers" type="ao" direction="out" />