diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-02-06 11:10:53 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-09-05 11:28:10 +0200 |
commit | fbeee20d5b7789bd0bcd4e4ab1dce784390e5ebd (patch) | |
tree | 72b7b63e6e4191566d72db6769f7e9b3403be0d9 /src/mm-iface-modem-location.c | |
parent | 02961c388b54fe3a00419004d2e9f1ce6025751c (diff) | |
download | ModemManager-fbeee20d5b7789bd0bcd4e4ab1dce784390e5ebd.tar.gz |
introspection,api: add SUPL server configuration in the Location interface
Diffstat (limited to 'src/mm-iface-modem-location.c')
-rw-r--r-- | src/mm-iface-modem-location.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mm-iface-modem-location.c b/src/mm-iface-modem-location.c index 57d5f2c1e..d67c42702 100644 --- a/src/mm-iface-modem-location.c +++ b/src/mm-iface-modem-location.c @@ -139,6 +139,8 @@ build_location_dictionary (GVariant *previous, break; case MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED: g_assert_not_reached (); + case MM_MODEM_LOCATION_SOURCE_AGPS: + g_assert_not_reached (); default: g_warn_if_reached (); break; @@ -508,6 +510,7 @@ update_location_source_status (MMIfaceModemLocation *self, g_clear_object (&ctx->location_cdma_bs); break; case MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED: + case MM_MODEM_LOCATION_SOURCE_AGPS: /* Nothing to setup in the context */ default: break; @@ -616,7 +619,7 @@ setup_gathering_step (SetupGatheringContext *ctx) return; } - while (ctx->current <= MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED) { + while (ctx->current <= MM_MODEM_LOCATION_SOURCE_AGPS) { gchar *source_str; if (ctx->to_enable & ctx->current) { @@ -713,7 +716,7 @@ setup_gathering (MMIfaceModemLocation *self, /* Loop through all known bits in the bitmask to enable/disable specific location sources */ for (source = MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI; - source <= MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED; + source <= MM_MODEM_LOCATION_SOURCE_AGPS; source = source << 1) { /* skip unsupported sources */ if (!(mm_gdbus_modem_location_get_capabilities (ctx->skeleton) & source)) @@ -1184,7 +1187,8 @@ interface_enabling_step (EnablingContext *ctx) default_sources = mm_gdbus_modem_location_get_capabilities (ctx->skeleton); default_sources &= ~(MM_MODEM_LOCATION_SOURCE_GPS_RAW | MM_MODEM_LOCATION_SOURCE_GPS_NMEA | - MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED); + MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED | + MM_MODEM_LOCATION_SOURCE_AGPS); setup_gathering (ctx->self, default_sources, |