summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tmpwip/mm-time-thresholdZeeshan Ali2018-04-187-109/+130
|
* demo: Add '--time-threshold' CLI optionZeeshan Ali2018-04-171-0/+10
| | | | | | Add an option to set the TimeThreshold. https://bugs.freedesktop.org/show_bug.cgi?id=105993
* service-client: Forward TimeThreshold to sourcesZeeshan Ali2018-04-171-1/+5
| | | | | | | | | | Some sources will be able to make use of this to reduce battery life so we should forward this information to them, via the Locator class. Currently, only ModemManager can do that but that's also where it makes most sense since GPS is the only source that can continuously fetch location updates and hence drain the most power. https://bugs.freedesktop.org/show_bug.cgi?id=105993
* locator: Aggregate time-threshold for sourcesZeeshan Ali2018-04-172-1/+95
| | | | | | | | | | | Unlike other (real) location sources, Locator instances are unique for each client application. Which means we only need just one time-threshold value so we now provide getter and setter for time-threshold as guint, which is what will be set by the clients, instead of the time-threshold property of the parent class LocationSource (they can still do that if they wish though). https://bugs.freedesktop.org/show_bug.cgi?id=105993
* modem-manager: Implement 'time-threshold' propertyZeeshan Ali2018-04-171-2/+78
| | | | | | | | Implement the 'time-threshold' property of Modem interface. This implementation translates this to ModemLocation::gps-refresh-rate property of ModemManager service. https://bugs.freedesktop.org/show_bug.cgi?id=105993
* modem: Add 'time-threshold' propertyZeeshan Ali2018-04-172-0/+33
| | | | | | | | | | | | | Add 'time-threshold' property of type guint, not GClueMinUINT to Modem interface. In a following patch, ModemManager implementation will translate this to ModemLocation::gps-refresh-rate property of ModemManager service. There is no reason to use the more complex GClueMinUINT type here since the Modem implementations are at the last end of the time-threshold users and hence just needs one specific value to be set on them. https://bugs.freedesktop.org/show_bug.cgi?id=105993
* location-source: Add 'time-threshold' propertyZeeshan Ali2018-04-172-0/+36
| | | | | | | | In the following patches, this property will be used to set the GPS refresh rate on the ModemManager, based on the D-Bus TimeThreshold property. https://bugs.freedesktop.org/show_bug.cgi?id=105993
* Add GClueMinUINT classZeeshan Ali2018-04-173-0/+321
| | | | | | | | | This is a helper class that keeps a list of guint values and the minimum value from this list. In the following patches, it will be used by location sources to use the minimum time-threshold (location update rate) from all the time-thresholds requested by different applications. https://bugs.freedesktop.org/show_bug.cgi?id=105993
* modem-gps: Fix short-description in doc commentZeeshan Ali2018-04-141-1/+1
|
* Release 2.4.82.4.8Zeeshan Ali2018-04-122-1/+16
|
* Require mm-glib >= 1.6Zeeshan Ali2018-04-121-1/+1
| | | | | In a19221e5fe (modem-manager: Instant GPS location update), we started using the API introduced in 1.6.
* simple: Re-use existing client/locationZeeshan Ali2017-09-041-2/+10
| | | | | | | | | | | | | A client process could create and destroy GClueSimple multiple times in its lifetime. Since the service keeps the Client (and it's associated location) object alive until the D-Bus connection from the client process remains alive and gclue_simple_new*() awaits for a location fix on the client it gets from service, subsequent calls to gclue_simple_new*() (after first one) will likely not return anytime soon. With this patch, GClueSimple now checks for any existing location object on the client object and doesn't keep waiting for location update if one is available already.
* modem-manager: Instant GPS location updateValentin Blot2017-08-111-0/+23
| | | | | | | | GPS location updates are every 30s by default in ModemManager. This commit sets this rate to 0 (update as soon as the GPS sends a new location) so Geoclue can be used in real-time applications (like routing). https://bugs.freedesktop.org/show_bug.cgi?id=101975
* conf: More info about apps white-listZeeshan Ali2017-07-201-0/+6
| | | | | Explain further in a comment that the apps white-list is not meant to list all the apps in the world.
* location: Correct value of TIME_DIFF_THRESHOLDValentin Blot2017-06-091-1/+1
| | | | | | | | | | Commit d3893e6fac09064682e880c7972f2fcf82a6fb87 introduced a constant TIME_DIFF_THRESHOLD with value 60. In the summary of the commit this is said to be 60s, however it is compared to the output of g_date_time_difference, which is in microseconds. Therefore, if we want the threshold to correspond to 1 minute, TIME_DIFF_THRESHOLD should have value 60000000. https://bugs.freedesktop.org/show_bug.cgi?id=101357
* Release 2.4.72.4.7Zeeshan Ali2017-05-292-1/+7
|
* nmea-source: Verbose invalid accuracy value warningZeeshan Ali2017-05-291-1/+2
|
* location: Add a NULL-checkZeeshan Ali2017-04-261-0/+2
|
* location: It's OK if NMEA doesn't provide altitudeZeeshan Ali2017-04-261-2/+0
| | | | | We were requiring altitude from NMEA GGA sentences and that later ends up in a crash cause we return a NULL location without setting an error.
* Release 2.4.62.4.6Zeeshan Ali2017-03-272-1/+13
|
* data: Add gnome-shell to the whitelistFlorian Müllner2017-03-181-0/+5
| | | | | | | | | | gnome-shell now uses Geoclue to show weather information in the calendar drop-down. While it can easily bypass the authorization dialog (being the agent itself), the location indicator loses its usefulness when permanently visible, so add it to the other system components in the whitelist. https://bugs.freedesktop.org/show_bug.cgi?id=100263
* agent: Remove redundant ';' from if statementRob Norris2017-03-131-1/+1
| | | | | | This fixes a leak. https://bugs.freedesktop.org/show_bug.cgi?id=100175
* simple: Correct function name in doc commentRob Norris2017-03-131-1/+1
| | | | | | Correct a copy&paste mistake in a doc comment. https://bugs.freedesktop.org/show_bug.cgi?id=100176
* data: Add "Night Light" functionality to the whitelistBastien Nocera2017-02-281-0/+5
| | | | | | | | | | The gnome-settings-daemon color plugin uses Geoclue to guess the current location and deduce the sunset and sunrise times. Make sure that the functionality does not require a dialogue on startup when enabled. See https://bugzilla.gnome.org/show_bug.cgi?id=779343 https://bugs.freedesktop.org/show_bug.cgi?id=100008
* Bump version in configure.ac2.4.5Zeeshan Ali2017-01-271-1/+1
|
* Release 2.4.5Zeeshan Ali2017-01-271-1/+5
|
* service-location: Drop a redundant unrefZeeshan Ali2016-12-191-1/+0
| | | | We were unrefing an object that didn't belong to us.
* Release 2.4.42.4.4Zeeshan Ali2016-09-062-1/+22
|
* build: Don't hardcode libtool pathZeeshan Ali2016-09-061-1/+1
| | | | This fixes cross-builds.
* build: Link directly against the libtool fileZeeshan Ali2016-09-061-1/+1
| | | | Rather then asking build system to link to libgeoclue. This fixes cross-builds.
* build: Minor indentation fixZeeshan Ali2016-09-061-1/+1
|
* service-client: Add a TimeThreshold propertyEmilio Pozuelo Monfort2016-07-012-1/+54
| | | | | | | | If the time since the last update is below the threshold, it won't emit the LocationUpdated signal. The default value is 0. When TimeThreshold is zero, it always emits the signal. https://bugs.freedesktop.org/show_bug.cgi?id=94460
* service-client: Add a debug logJustin Kim2016-07-011-1/+5
| | | | | | | Add a debug log when the distance from previous location is below distance_threshold. https://bugs.freedesktop.org/show_bug.cgi?id=94460
* service-client: threshold -> distance_thresholdJustin Kim2016-07-011-7/+14
| | | | | | | We're about to introduce time-based threshold so let's rename *threshold* to *distance_threshold*. https://bugs.freedesktop.org/show_bug.cgi?id=94460
* client: Annotate default value of DistanceThresholdJustin Kim2016-07-011-1/+5
| | | | | | The default value of DistanceThreshold is zero. https://bugs.freedesktop.org/show_bug.cgi?id=94460
* build: Fix gtk-doc build when builddir ≠ srcdirTing-Wei Lan2016-06-242-7/+12
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=96521
* client-info: Reliable desktop ID for flatpak as wellBastien Nocera2016-06-231-1/+4
| | | | | | | Now that xdg-app has been renamed, we also need to check for the "flatpak-" prefix for the cgroup. https://bugs.freedesktop.org/show_bug.cgi?id=96655
* lib: Define CC and other variables for g-ir-scannerColin Walters2016-05-301-1/+7
| | | | | | | | | This ensures g-ir-scanner uses the configured compiler. Fixes the build in GContinuous, which is currently somewhat broken in that `/usr/bin/cc` is a cross compiler by default. But this propagation is the correct thing to do always. A similar patch landed in GStreamer.
* demo: Remove unnecessary g_variant_unref callJustin Kim2016-05-251-1/+0
| | | | | | It's not required to unref for the return of gclue_location_get_timestamp. https://bugs.freedesktop.org/show_bug.cgi?id=96178
* web-source: Check for full internet availabilityZeeshan Ali (Khattak)2016-05-201-20/+40
| | | | | | | | | | | Instead of just checking if some network is available, let's check if we are fully connected to internet or not. If glib >= 2.44 is available, we make use the new API added in that version to check for connectivity but if it's not, we check if Mozilla Location Services hostname is reachable. https://bugs.freedesktop.org/show_bug.cgi?id=95493
* web-source: Mark unused arg as suchZeeshan Ali (Khattak)2016-05-201-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=95493
* web-source: A minor typo fix in a commentZeeshan Ali (Khattak)2016-05-191-1/+1
|
* location: A minor simplification of calculationZeeshan Ali (Khattak)2016-05-191-1/+1
|
* where-am-i: Show location timestampEmilio Pozuelo Monfort2016-04-201-0/+20
| | | | | | If available. https://bugs.freedesktop.org/show_bug.cgi?id=94157
* Expose the location's timestamp over D-BusEmilio Pozuelo Monfort2016-04-205-0/+38
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=94157
* Add a gclue_location_new_full() functionEmilio Pozuelo Monfort2016-04-203-15/+22
| | | | | | | | | | And drop the now unused gclue_location_new_with_description(). This will allow to also set the timestamp in the next commit, as that property is construct only and couldn't be set if using gclue_location_new_with_description(). https://bugs.freedesktop.org/show_bug.cgi?id=94157
* location: Update from geocode-glibZeeshan Ali (Khattak)2016-04-059-8/+47
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=94521
* service-client: Fix comparison against zeroPhilip Withnall2016-03-231-1/+1
| | | | | | | | | | g_variant_n_children() is unsigned, so comparing < 0 will always be false; this looks like a typo for <= 0, which would avoid allocating the GVariantIter unnecessarily. Spotted by Coverity (CID: #78509). https://bugs.freedesktop.org/show_bug.cgi?id=94669
* main: Remove stray semicolonPhilip Withnall2016-03-231-1/+1
| | | | | | | | This fixes a memory leak on exit. Spotted by Coverity (CID: #78510). https://bugs.freedesktop.org/show_bug.cgi?id=94669
* build: Fix autogen.sh against builddir ≠ srcdirPhilip Withnall2016-03-221-1/+5
| | | | | | | When run from outside the srcdir, autogen.sh was failing because various of the tools it calls expect to be called from within srcdir. https://bugs.freedesktop.org/show_bug.cgi?id=94649