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-port-serial-at.c | |
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-port-serial-at.c')
0 files changed, 0 insertions, 0 deletions