diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-01-30 20:14:25 -0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-02-11 10:52:09 +0100 |
commit | 18c8dd60a7ffec58fc1846f0a3894c951018e260 (patch) | |
tree | 5d23c0cba16e1065146acbcdb23bba83ad4fd64d /src/mm-sim-qmi.h | |
parent | 9cbd0c61b0562b2f2370d5c192d06fe8694bb021 (diff) |
qmi: just one InvalidCommand error is enough to avoid all DMS UIM commands
The MMBroadbandModemQmi will not create a MMSimQmi until the unlock status has
been checked, and therefore this means that when the SIM object is being created
we already know whether the modem supports DMS UIM commands or not, so avoid
further fallbacks in the SIM object.
Diffstat (limited to 'src/mm-sim-qmi.h')
-rw-r--r-- | src/mm-sim-qmi.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mm-sim-qmi.h b/src/mm-sim-qmi.h index c0b76218..20954444 100644 --- a/src/mm-sim-qmi.h +++ b/src/mm-sim-qmi.h @@ -32,6 +32,8 @@ typedef struct _MMSimQmi MMSimQmi; typedef struct _MMSimQmiClass MMSimQmiClass; typedef struct _MMSimQmiPrivate MMSimQmiPrivate; +#define MM_SIM_QMI_DMS_UIM_DEPRECATED "dms-uim-deprecated" + struct _MMSimQmi { MMBaseSim parent; MMSimQmiPrivate *priv; @@ -43,11 +45,12 @@ struct _MMSimQmiClass { GType mm_sim_qmi_get_type (void); -void mm_sim_qmi_new (MMBaseModem *modem, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -MMBaseSim *mm_sim_qmi_new_finish (GAsyncResult *res, - GError **error); +void mm_sim_qmi_new (MMBaseModem *modem, + gboolean dms_uim_deprecated, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +MMBaseSim *mm_sim_qmi_new_finish (GAsyncResult *res, + GError **error); #endif /* MM_SIM_QMI_H */ |