diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-07-28 22:34:00 +0200 |
---|---|---|
committer | Ben Chan <benchan@chromium.org> | 2018-10-26 09:41:44 -0700 |
commit | 025fcb7e92dde84c45085a1087375413c23d8ab7 (patch) | |
tree | 8d78deedfe0586738decaabc7687a099ca6701f4 /libmm-glib | |
parent | 408a2a9c6cef91e11a3ed5e09c140e175534822d (diff) |
api: deprecate SubscriptionState property
Diffstat (limited to 'libmm-glib')
-rw-r--r-- | libmm-glib/mm-modem-3gpp.c | 12 | ||||
-rw-r--r-- | libmm-glib/mm-modem-3gpp.h | 5 |
2 files changed, 13 insertions, 4 deletions
diff --git a/libmm-glib/mm-modem-3gpp.c b/libmm-glib/mm-modem-3gpp.c index 80746f98..3bfe87f3 100644 --- a/libmm-glib/mm-modem-3gpp.c +++ b/libmm-glib/mm-modem-3gpp.c @@ -253,14 +253,20 @@ mm_modem_3gpp_get_registration_state (MMModem3gpp *self) * Get the current subscription status of the account. This value is only * available after the modem attempts to register with the network. * + * The value of this property can only be obtained with operator specific logic (e.g. + * processing specific PCO info), and therefore it doesn't make sense to expose it in + * the ModemManager interface. + * * Returns: A #MMModem3gppSubscriptionState value, specifying the current subscription state. + * + * Deprecated: 1.10.0. The value of this property can only be obtained with operator + * specific logic (e.g. processing specific PCO info), and therefore it doesn't make sense + * to expose it in the ModemManager interface. */ MMModem3gppSubscriptionState mm_modem_3gpp_get_subscription_state (MMModem3gpp *self) { - g_return_val_if_fail (MM_IS_MODEM_3GPP (self), MM_MODEM_3GPP_SUBSCRIPTION_STATE_UNKNOWN); - - return mm_gdbus_modem3gpp_get_subscription_state (MM_GDBUS_MODEM3GPP (self)); + return MM_MODEM_3GPP_SUBSCRIPTION_STATE_UNKNOWN; } /*****************************************************************************/ diff --git a/libmm-glib/mm-modem-3gpp.h b/libmm-glib/mm-modem-3gpp.h index 539674f7..f71d8a61 100644 --- a/libmm-glib/mm-modem-3gpp.h +++ b/libmm-glib/mm-modem-3gpp.h @@ -76,7 +76,6 @@ const gchar *mm_modem_3gpp_get_operator_name (MMModem3gpp *self); gchar *mm_modem_3gpp_dup_operator_name (MMModem3gpp *self); MMModem3gppRegistrationState mm_modem_3gpp_get_registration_state (MMModem3gpp *self); -MMModem3gppSubscriptionState mm_modem_3gpp_get_subscription_state (MMModem3gpp *self); MMModem3gppFacility mm_modem_3gpp_get_enabled_facility_locks (MMModem3gpp *self); @@ -136,6 +135,10 @@ gboolean mm_modem_3gpp_set_eps_ue_mode_operation_sync (MMModem3gpp GCancellable *cancellable, GError **error); +/* Deprecated APIs */ +G_DEPRECATED +MMModem3gppSubscriptionState mm_modem_3gpp_get_subscription_state (MMModem3gpp *self); + G_END_DECLS #endif /* _MM_MODEM_3GPP_H_ */ |