diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 18:43:06 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 19:01:06 +0200 |
commit | 4bf7657086e6ede28cfc2974c499cbe900a59152 (patch) | |
tree | 89c4407ddf69604a6e45abe5cf90245f457443ab /libmm-glib/mm-compat.c | |
parent | 219700ba6d9df49427320eb2cbfd8eae850b8921 (diff) |
libmm-glib,location-3gpp: move deprecated methods to compat source
Diffstat (limited to 'libmm-glib/mm-compat.c')
-rw-r--r-- | libmm-glib/mm-compat.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libmm-glib/mm-compat.c b/libmm-glib/mm-compat.c index b878a6f8..f2531a08 100644 --- a/libmm-glib/mm-compat.c +++ b/libmm-glib/mm-compat.c @@ -117,6 +117,21 @@ mm_location_gps_nmea_build_full (MMLocationGpsNmea *self) /*****************************************************************************/ +guint +mm_location_3gpp_get_mobile_network_code (MMLocation3gpp *self) +{ + const gchar *operator_code; + + g_return_val_if_fail (MM_IS_LOCATION_3GPP (self), 0); + + operator_code = mm_location_3gpp_get_operator_code (self); + if (!operator_code) + return 0; + return strtol (operator_code + 3, NULL, 10); +} + +/*****************************************************************************/ + void mm_pco_list_free (GList *pco_list) { |