diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-05-30 20:09:55 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-06-06 15:20:51 +0200 |
commit | 8ad868cea27f2ab043e5dfb544d5d70de34f60c2 (patch) | |
tree | 7cbf4473979c5253d6925224da6d99c1e1d85b2b /src/mm-iface-modem.h | |
parent | 34ac81071b90e4e15c209b2540d62cc8ca55f9da (diff) |
iface-modem: consolidate signal quality and access tech polling
Plugins have two ways to update signal quality and access technology
values: via unsolicited messages or via polling periodically.
Instead of keeping separate contexts for polling signal quality and
access technology values, we setup a common timeout to trigger
both. This allows us to simplify in which case the explicit update is
required, whenever one is needed to be explicitly updated, the other
one should also be.
The logic now also allows plugins to return an UNSUPPORTED error in
either load_signal_quality() and/or load_access_technologies() to tell
the interface logic that the polling of the specific item shouldn't be
performed (e.g. if the updates are expected via unsolicited messages).
If both signal quality and access technology polling is flagged as
disabled, we totally disable the polling logic internally.
The new SignalCheckContext is bound to the lifetime of the object so
that we can keep the value of the supported flags until the object is
destroyed.
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r-- | src/mm-iface-modem.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h index 517c651d..17ded5bc 100644 --- a/src/mm-iface-modem.h +++ b/src/mm-iface-modem.h @@ -444,13 +444,13 @@ void mm_iface_modem_update_access_technologies (MMIfaceModem *self, MMModemAccessTechnology access_tech, guint32 mask); -/* Allow requesting to refresh access tech */ -void mm_iface_modem_refresh_access_technologies (MMIfaceModem *self); - /* Allow updating signal quality */ void mm_iface_modem_update_signal_quality (MMIfaceModem *self, guint signal_quality); +/* Allow requesting to refresh signal via polling */ +void mm_iface_modem_refresh_signal (MMIfaceModem *self); + /* Allow setting allowed modes */ void mm_iface_modem_set_current_modes (MMIfaceModem *self, MMModemMode allowed, |