diff options
author | Lukas Voegl <lvoegl@tdt.de> | 2024-11-22 15:53:33 +0100 |
---|---|---|
committer | Lukas Voegl <lvoegl@tdt.de> | 2025-04-25 09:37:16 +0200 |
commit | 436081648b3587096683bd3ba4d219d16f14efb5 (patch) | |
tree | 4d134aeef271bd970c527dadfd611d05fec9903c /src/mm-iface-modem.c | |
parent | 39123f964ba6f359987f22d89317a842d8f1d528 (diff) |
api,modem: new 'IgnoredPorts' property
Expose a new list of 'IgnoredPorts' via D-Bus and therefore remove the use of `MM_MODEM_PORT_TYPE_IGNORED`
Signed-off-by: Lukas Voegl <lvoegl@tdt.de>
Diffstat (limited to 'src/mm-iface-modem.c')
-rw-r--r-- | src/mm-iface-modem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index de25296b..75c2ca63 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -5718,6 +5718,14 @@ interface_initialization_step (GTask *task) mm_gdbus_modem_set_ports (ctx->skeleton, mm_common_ports_array_to_variant (port_infos, n_port_infos)); mm_modem_port_info_array_free (port_infos, n_port_infos); } + if (!mm_gdbus_modem_get_ignored_ports (ctx->skeleton)) { + MMModemPortInfo *port_infos; + guint n_port_infos; + + port_infos = mm_base_modem_get_ignored_port_infos (MM_BASE_MODEM (self), &n_port_infos); + mm_gdbus_modem_set_ignored_ports (ctx->skeleton, mm_common_ports_array_to_variant (port_infos, n_port_infos)); + mm_modem_port_info_array_free (port_infos, n_port_infos); + } ctx->step++; /* fall-through */ |