diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-03-14 08:02:18 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@gnu.org> | 2019-04-09 12:24:39 +0000 |
commit | b77aa7ab0eaae2aca4e2f01f8328f1015260356d (patch) | |
tree | 35c23ec77753a2879b8eefed4e162261e229aa03 /include | |
parent | 619d2ce5ac1639ffe1229b594a4028a1520ac1b3 (diff) |
location,agps: explicitly specify that MSA A-GPS is implemented
The A-GPS based implementations we currently have assume MSA A-GPS, so
rename the MMModemLocationSource enum value to reflect that.
Diffstat (limited to 'include')
-rw-r--r-- | include/ModemManager-compat.h | 14 | ||||
-rw-r--r-- | include/ModemManager-enums.h | 4 |
2 files changed, 16 insertions, 2 deletions
diff --git a/include/ModemManager-compat.h b/include/ModemManager-compat.h index 974b69bf..2019d25a 100644 --- a/include/ModemManager-compat.h +++ b/include/ModemManager-compat.h @@ -694,6 +694,20 @@ typedef int MMModemBandDeprecated; */ #define MM_MODEM_BAND_CDMA_BC19_US_LOWER_700 ((MMModemBandDeprecated)MM_MODEM_BAND_CDMA_BC19) +/* The following type exists just so that we can get deprecation warnings */ +MM_DEPRECATED +typedef int MMModemLocationSourceDeprecated; + +/** + * MM_MODEM_LOCATION_SOURCE_AGPS: + * + * A-GPS location requested. + * + * Since: 1.0 + * Deprecated: 1.12.0: Use #MM_MODEM_LOCATION_SOURCE_AGPS_MSA instead. + */ +#define MM_MODEM_LOCATION_SOURCE_AGPS ((MMModemLocationSourceDeprecated)MM_MODEM_LOCATION_SOURCE_AGPS_MSA) + #endif /* MM_DISABLE_DEPRECATED */ #endif /* _MODEMMANAGER_COMPAT_H_ */ diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index 9e75e2f4..7a8162cb 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -928,7 +928,7 @@ typedef enum { /*< underscore_name=mm_sms_cdma_service_category >*/ * @MM_MODEM_LOCATION_SOURCE_GPS_NMEA: GPS location given as NMEA traces. * @MM_MODEM_LOCATION_SOURCE_CDMA_BS: CDMA base station position. * @MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED: No location given, just GPS module setup. - * @MM_MODEM_LOCATION_SOURCE_AGPS: A-GPS location requested. + * @MM_MODEM_LOCATION_SOURCE_AGPS_MSA: Mobile Station Assisted A-GPS location requested. Since 1.12. * * Sources of location information supported by the modem. */ @@ -939,7 +939,7 @@ typedef enum { /*< underscore_name=mm_modem_location_source >*/ MM_MODEM_LOCATION_SOURCE_GPS_NMEA = 1 << 2, MM_MODEM_LOCATION_SOURCE_CDMA_BS = 1 << 3, MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED = 1 << 4, - MM_MODEM_LOCATION_SOURCE_AGPS = 1 << 5, + MM_MODEM_LOCATION_SOURCE_AGPS_MSA = 1 << 5, } MMModemLocationSource; /** |