libmm-glib,modem-3gpp: add guards around deprecated symbols
This commit is contained in:
@@ -254,6 +254,8 @@ mm_modem_3gpp_get_registration_state (MMModem3gpp *self)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#ifndef MM_DISABLE_DEPRECATED
|
||||
|
||||
/**
|
||||
* mm_modem_3gpp_get_subscription_state:
|
||||
* @self: A #MMModem.
|
||||
@@ -277,6 +279,8 @@ mm_modem_3gpp_get_subscription_state (MMModem3gpp *self)
|
||||
return MM_MODEM_3GPP_SUBSCRIPTION_STATE_UNKNOWN;
|
||||
}
|
||||
|
||||
#endif /* MM_DISABLE_DEPRECATED */
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
|
||||
@@ -167,10 +167,13 @@ gboolean mm_modem_3gpp_set_initial_eps_bearer_settings_sync (MMModem3gpp
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
/* Deprecated APIs */
|
||||
#ifndef MM_DISABLE_DEPRECATED
|
||||
|
||||
G_DEPRECATED
|
||||
MMModem3gppSubscriptionState mm_modem_3gpp_get_subscription_state (MMModem3gpp *self);
|
||||
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* _MM_MODEM_3GPP_H_ */
|
||||
|
||||
Reference in New Issue
Block a user