libmm-glib,modem-3gpp: add guards around deprecated symbols

This commit is contained in:
Aleksander Morgado
2018-12-16 09:15:52 +01:00
parent 0d6e2dc9f5
commit 04720d0795
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -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 */
/*****************************************************************************/
/**
+4 -1
View File
@@ -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_ */