libmm-glib,modem-3gpp: move deprecated methods to compat source

This commit is contained in:
Aleksander Morgado
2021-06-25 19:01:06 +02:00
parent 6363add86a
commit 27a192c1ef
5 changed files with 35 additions and 39 deletions
@@ -298,7 +298,6 @@ mm_modem_3gpp_get_operator_name
mm_modem_3gpp_dup_operator_name
mm_modem_3gpp_get_enabled_facility_locks
mm_modem_3gpp_get_registration_state
mm_modem_3gpp_get_subscription_state
mm_modem_3gpp_get_pco
mm_modem_3gpp_get_eps_ue_mode_operation
mm_modem_3gpp_get_initial_eps_bearer_path
@@ -1835,6 +1834,8 @@ mm_call_properties_get_state_reason
mm_call_properties_set_state_reason
<SUBSECTION LocationGpsNmea>
mm_location_gps_nmea_build_full
<SUBSECTION Modem3gpp>
mm_modem_3gpp_get_subscription_state
<SUBSECTION ModemOma>
mm_modem_peek_pending_network_initiated_sessions
mm_modem_get_pending_network_initiated_sessions
+8
View File
@@ -117,6 +117,14 @@ mm_location_gps_nmea_build_full (MMLocationGpsNmea *self)
/*****************************************************************************/
MMModem3gppSubscriptionState
mm_modem_3gpp_get_subscription_state (MMModem3gpp *self)
{
return MM_MODEM_3GPP_SUBSCRIPTION_STATE_UNKNOWN;
}
/*****************************************************************************/
gboolean
mm_modem_get_pending_network_initiated_sessions (MMModemOma *self,
MMOmaPendingNetworkInitiatedSession **sessions,
+25
View File
@@ -33,6 +33,7 @@
#include "mm-bearer-properties.h"
#include "mm-call-properties.h"
#include "mm-location-gps-nmea.h"
#include "mm-modem-3gpp.h"
#include "mm-modem-oma.h"
/**
@@ -229,6 +230,30 @@ gchar *mm_location_gps_nmea_build_full (MMLocationGpsNmea *self);
/*****************************************************************************/
/**
* mm_modem_3gpp_get_subscription_state:
* @self: A #MMModem.
*
* 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.
*
* Since: 1.0
* 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.
*/
G_DEPRECATED
MMModem3gppSubscriptionState mm_modem_3gpp_get_subscription_state (MMModem3gpp *self);
/*****************************************************************************/
/**
* mm_modem_get_pending_network_initiated_sessions:
* @self: A #MMModem.
-31
View File
@@ -278,37 +278,6 @@ mm_modem_3gpp_get_registration_state (MMModem3gpp *self)
/*****************************************************************************/
#ifndef MM_DISABLE_DEPRECATED
/**
* mm_modem_3gpp_get_subscription_state:
* @self: A #MMModem.
*
* 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.
*
* Since: 1.0
* 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)
{
return MM_MODEM_3GPP_SUBSCRIPTION_STATE_UNKNOWN;
}
#endif /* MM_DISABLE_DEPRECATED */
/*****************************************************************************/
/**
* mm_modem_3gpp_get_enabled_facility_locks:
* @self: A #MMModem3gpp.
-7
View File
@@ -187,13 +187,6 @@ gboolean mm_modem_3gpp_disable_facility_lock_sync (MMModem3gpp *self,
GCancellable *cancellable,
GError **error);
#ifndef MM_DISABLE_DEPRECATED
G_DEPRECATED
MMModem3gppSubscriptionState mm_modem_3gpp_get_subscription_state (MMModem3gpp *self);
#endif
G_END_DECLS
#endif /* _MM_MODEM_3GPP_H_ */