diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-12-18 16:57:07 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-04-02 12:14:03 +0200 |
commit | 52b67dc7c3a2b432f6c64b8e4d56b7f2e4d28066 (patch) | |
tree | 4a0349ecedb10c3a326590fb045ae195f9cf6857 /src/mm-iface-modem.h | |
parent | c479d036f7717adbc922e52ba305df8a304bd690 (diff) |
api,modem: new 'CarrierConfigurationRevision' property
Which reports the version of the currently active carrier
configuration.
We also update the firmware 'version' reported in the firmware
settings so that carrier-specific upgrades can be performed (e.g. when
the firmware stays the same but the MCFG is updated).
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r-- | src/mm-iface-modem.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h index 82236dd4..51cb02bd 100644 --- a/src/mm-iface-modem.h +++ b/src/mm-iface-modem.h @@ -362,8 +362,10 @@ struct _MMIfaceModem { void (* load_carrier_config) (MMIfaceModem *self, GAsyncReadyCallback callback, gpointer user_data); - gchar * (* load_carrier_config_finish) (MMIfaceModem *self, + gboolean (* load_carrier_config_finish) (MMIfaceModem *self, GAsyncResult *res, + gchar **carrier_config_name, + gchar **carrier_config_revision, GError **error); /* Setup carrier config based on IMSI */ @@ -400,9 +402,11 @@ gboolean mm_iface_modem_is_4g (MMIfaceModem *self); gboolean mm_iface_modem_is_4g_only (MMIfaceModem *self); /* Helpers to query properties */ -const gchar *mm_iface_modem_get_model (MMIfaceModem *self); -const gchar *mm_iface_modem_get_revision (MMIfaceModem *self); -const gchar *mm_iface_modem_get_carrier_config (MMIfaceModem *self); +const gchar *mm_iface_modem_get_model (MMIfaceModem *self); +const gchar *mm_iface_modem_get_revision (MMIfaceModem *self); +gboolean mm_iface_modem_get_carrier_config (MMIfaceModem *self, + const gchar **name, + const gchar **revision); /* Initialize Modem interface (async) */ void mm_iface_modem_initialize (MMIfaceModem *self, |