diff options
author | Som_SP <somashekhar.puttagangaiah@intel.com> | 2021-10-14 16:30:06 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-10-20 22:09:57 +0200 |
commit | 92539fa71f015e5af08794e486b1c9853c9cf510 (patch) | |
tree | cc73ce374722e75a87380f87c08d914164076772 /src/mm-iface-modem-signal.h | |
parent | 925f0bae11c0b49a464237c5c98921ffd68157e2 (diff) |
iface-modem-signal: implement support for SetupThresholds()
Also allow updating the per-access technology signal quality
information via indications.
Includes updates by Aleksander Morgado to fix coding style issues and
some other GTask related problems.
Diffstat (limited to 'src/mm-iface-modem-signal.h')
-rw-r--r-- | src/mm-iface-modem-signal.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/mm-iface-modem-signal.h b/src/mm-iface-modem-signal.h index dd7a6685..d359659d 100644 --- a/src/mm-iface-modem-signal.h +++ b/src/mm-iface-modem-signal.h @@ -10,7 +10,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details: * - * Copyright (C) 2013 Aleksander Morgado <aleksander@gnu.org> + * Copyright (C) 2013-2021 Aleksander Morgado <aleksander@aleksander.es> + * Copyright (C) 2021 Intel Corporation */ #ifndef MM_IFACE_MODEM_SIGNAL_H @@ -56,6 +57,17 @@ struct _MMIfaceModemSignal { MMSignal **lte, MMSignal **nr5g, GError **error); + + /* Setup thresholds */ + void (* setup_thresholds) (MMIfaceModemSignal *self, + guint32 rssi_threshold, + gboolean error_rate_threshold, + GAsyncReadyCallback callback, + gpointer user_data); + gboolean (* setup_thresholds_finish) (MMIfaceModemSignal *self, + GAsyncResult *res, + GError **error); + }; GType mm_iface_modem_signal_get_type (void); @@ -94,4 +106,13 @@ void mm_iface_modem_signal_shutdown (MMIfaceModemSignal *self); void mm_iface_modem_signal_bind_simple_status (MMIfaceModemSignal *self, MMSimpleStatus *status); +/* Allow signal quality updates via indications */ +void mm_iface_modem_signal_update (MMIfaceModemSignal *self, + MMSignal *cdma, + MMSignal *evdo, + MMSignal *gsm, + MMSignal *umts, + MMSignal *lte, + MMSignal *nr5g); + #endif /* MM_IFACE_MODEM_SIGNAL_H */ |