From a902e6859e077edd72f7b27a48df37f8dd6631e2 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 24 May 2013 12:55:07 +0200 Subject: [PATCH] api,introspection: new 'SetCurrentCapabilities' method For those modems which expose a valid 'SupportedCapabilities' property with more than one item in the list, we'll allow switching between them. --- .../libmm-glib/libmm-glib-sections.txt | 7 + .../org.freedesktop.ModemManager1.Modem.xml | 10 ++ libmm-glib/mm-modem.c | 82 ++++++++++ libmm-glib/mm-modem.h | 13 ++ src/mm-iface-modem.c | 140 ++++++++++++++++++ src/mm-iface-modem.h | 9 ++ 6 files changed, 261 insertions(+) diff --git a/docs/reference/libmm-glib/libmm-glib-sections.txt b/docs/reference/libmm-glib/libmm-glib-sections.txt index 4bc13686..36a80f60 100644 --- a/docs/reference/libmm-glib/libmm-glib-sections.txt +++ b/docs/reference/libmm-glib/libmm-glib-sections.txt @@ -140,6 +140,9 @@ mm_modem_set_current_modes_sync mm_modem_set_current_bands mm_modem_set_current_bands_finish mm_modem_set_current_bands_sync +mm_modem_set_current_capabilities +mm_modem_set_current_capabilities_finish +mm_modem_set_current_capabilities_sync mm_modem_reset mm_modem_reset_finish mm_modem_reset_sync @@ -1490,6 +1493,9 @@ mm_gdbus_modem_call_set_current_modes_sync mm_gdbus_modem_call_set_current_bands mm_gdbus_modem_call_set_current_bands_finish mm_gdbus_modem_call_set_current_bands_sync +mm_gdbus_modem_call_set_current_capabilities +mm_gdbus_modem_call_set_current_capabilities_finish +mm_gdbus_modem_call_set_current_capabilities_sync mm_gdbus_modem_call_command mm_gdbus_modem_call_command_finish mm_gdbus_modem_call_command_sync @@ -1532,6 +1538,7 @@ mm_gdbus_modem_complete_list_bearers mm_gdbus_modem_complete_reset mm_gdbus_modem_complete_set_current_modes mm_gdbus_modem_complete_set_current_bands +mm_gdbus_modem_complete_set_current_capabilities mm_gdbus_modem_interface_info mm_gdbus_modem_override_properties diff --git a/introspection/org.freedesktop.ModemManager1.Modem.xml b/introspection/org.freedesktop.ModemManager1.Modem.xml index 46fa97dd..3f9af1aa 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.xml @@ -136,6 +136,16 @@ + + + + +