summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wifi: Only refresh location on BSS list changesdont-spam-mlsZeeshan Ali2019-01-031-7/+16
| | | | | | | If BSS list hasn't changed since the last location refresh, not much point in refreshing location and sending redundant query to MLS. Fixes #100.
* wifi: Wait 10 seconds between scans for high-accuracy caseZeeshan Ali2019-01-031-10/+13
| | | | | | | Typically people can't go very far in 10 seconds so no need to scan continuously for even high-accuracy requests. Fixes #100.
* wifi: Don't schedule location refresh on BSS addition/removalZeeshan Ali2019-01-031-25/+0
| | | | | | | Let's wait for the scan to be complete (takes 5 seconds currently) before refreshing location to avoid spamming Mozilla Location Service. Fixes #100.
* wifi: Add a debug log about refreshing locationZeeshan Ali2019-01-031-0/+1
|
* wifi: Move a debug logZeeshan Ali2019-01-031-8/+9
| | | | | Log addition of new BSS after actually adding it and only if it's really new.
* wifi: Debug message on removing BSS (AP)Zeeshan Ali2019-01-031-2/+19
|
* service,manager: New API for mult-client appsZeeshan Ali2018-12-312-17/+89
| | | | | | | | | | | | | | | We modified `Manager.GetClient` method in 3e1d9bf4 (service: Allow multiple clients on the same connection) and while that made things possible for the Flatpak location portal, it meant us creating redundant clients for existing system apps (e.g gnome-settings-daemon) and we don't want that. This patch changes `GetClient` to the old behaviour of reusing existing clients and adds a new method `CreateClient` that always creates a new client object. Fixes #96. Also related: #79.
* service: Log info on vanished peer to debug logZeeshan Ali2018-12-311-0/+9
|
* service: Fix check for bus name matchZeeshan Ali2018-12-271-1/+5
| | | | Fixes #97.
* service,manager: `active` now means non-0 clientsZeeshan Ali2018-12-271-16/+11
| | | | | | | With the current definition of service being active to be non-0 number of active clients, we can end up exiting even though multiple clients are connected. We don't want that since the client information is not persistent.
* service: Keep a count of number of clientsZeeshan Ali2018-12-271-4/+5
| | | | | g_list_length() could be an expensive call, depending on number of clients so best to just keep our own counter for number of connected clients.
* service: Remove a redundant 'const' qualifier from a fieldZeeshan Ali2018-12-271-1/+1
|
* service: Rename `num_clients` field to `last_client_id`Zeeshan Ali2018-12-271-2/+2
| | | | `num_clients` is confusing.
* docs: Fix two linksZeeshan Ali2018-12-271-8/+10
|
* wifi: Tell wpa_supplicant to keep scanningZeeshan Ali2018-12-221-0/+126
| | | | | | | | | | | | | It seems by default, wpa_supplicant won't keep a list of BSS around but only if it has done a scan recently. This means we currently end up with very bad accuracy since we only send out the ESSID of the currently connected WiFi (if any). To fix this, we'll now tell wpa_supplicant to start a scan when the source is started. We keep doing that continuously if accuracy is street level or higher, but wait 5 minutues between scans if requested accuracy is lower than that. Fixes #91.
* wpa_supplicant: Add Scanning APIZeeshan Ali2018-12-212-0/+11
| | | | | | | We'll need this in a following patch to start WiFi scan to be able to get the most accurate location. Related: #91
* web-source: fix type mismatch on unused parameterWill Thompson2018-11-061-1/+1
| | | | | | | | src/gclue-web-source.c:181:35: warning: passing argument 2 of ‘on_network_changed’ makes integer from pointer without a cast [-Wint-conversion] on_network_changed (NULL, NULL, user_data); ^~~~ src/freedesktop/geoclue/geoclue/src/gclue-web-source.c:135:38: note: expected ‘gboolean’ {aka ‘int’} but argument is of type ‘void *’ gboolean available G_GNUC_UNUSED,
* web-source: drop GLib < 2.44 fallback pathWill Thompson2018-11-061-12/+0
| | | | | Since 5ae456312c941ba2951563de0aef64ca5c25b0e6, GLib 2.44 has been a hard dependency.
* meson: require GLib >= 2.44Will Thompson2018-11-061-3/+3
| | | | | | This matches the Autotools change in 5ae456312c941ba2951563de0aef64ca5c25b0e6. Even though the Autotools build was subsequently dropped, the use of g_autofree remains.
* build: restore support for modem gps locationsValentin Blot2018-11-061-0/+4
| | | | | | | | Macros GCLUE_USE_3G_SOURCE, GCLUE_USE_CDMA_SOURCE, GCLUE_USE_MODEM_GPS_SOURCE and GCLUE_USE_NMEA_SOURCE are not defined anymore since the move to meson build system, therefore location through modem gps is unavailable. This commit adds the macro definitions when the corresponding options are enabled.
* service-client: Fix a check for system appZeeshan Ali2018-11-011-1/+1
| | | | | | We don't want to stop a system app client on agent's behalf but our check for system apps was inverted so we ended up doing the opposite. :( Thanks to Florian Müllner for pointing this out.
* Bump versionZeeshan Ali2018-11-011-1/+1
|
* service: Allow multiple clients on the same connectionZeeshan Ali2018-11-011-30/+28
| | | | | | This is needed to ease the implementation of the Flatpak location portal. Fixes #79.
* web-source: Update internet availability when connectivity changeswip/hadess/reduce-internet-availBastien Nocera2018-10-291-0/+20
| | | | | Going from limited ("captive portal") to full internet should update the internet availability.
* web-source: Minimise get_internet_available() callsBastien Nocera2018-10-291-10/+9
| | | | | | Rather than calling get_internet_available() too often, use the cached ->internet_available variable and call get_internet_available() when network status has actually changed.
* Trivia: Fix several typosLaurent Bigonville2018-10-222-3/+3
| | | | Thanks to lintian
* build: Gather common path variables in root meson.buildJan Alexander Steffens (heftig)2018-10-217-25/+21
| | | | This eliminates a lot of get_option and some join_paths.
* build: Make dbus_interface_dir absoluteJan Alexander Steffens (heftig)2018-10-211-4/+4
| | | | Removes the need for a separate abs_dbus_interface_dir.
* build: Rename abs_header_dir to include_subdirJan Alexander Steffens (heftig)2018-10-212-6/+6
| | | | | | | This is a better name as it's not absolute but a subdirectory of the includedir, relative to the prefix. Also rename the identical install_dir in public-api.
* build: Fix a double space (whitespace)Jan Alexander Steffens (heftig)2018-10-211-1/+1
|
* build: Ensure SYSCONFDIR is absoluteJan Alexander Steffens (heftig)2018-10-211-1/+1
| | | | | Much like libexecdir, sysconfdir is relative if and only if contained within the prefix.
* build: Use join_paths for LOCALEDIR and public-api install_dirJan Alexander Steffens (heftig)2018-10-212-2/+2
| | | | These were missed in dc46a4d942dc.
* Release 2.5.12.5.1Zeeshan Ali2018-10-162-1/+7
|
* Re-add gclue_accuracy_level_get_string()Zeeshan Ali2018-10-153-1/+55
| | | | | | | | | | | | This function was being generated when we were using autotools because it was part of our template. We unintentially dropped it when we ported to meson's gnome.mkenums_simple() as that uses it's own template that doesn't include this function. This broke ABI in 2.5.0 and hence we now re-add it, implementing it manually. Fixes #90.
* build: Use join_paths instead of concatenating the paths manuallyLaurent Bigonville2018-10-155-12/+12
|
* build: Set absolute path of libexecdirLaurent Bigonville2018-10-152-2/+2
| | | | | | get_option('libexecdir') contains the path to libexecdir WITHOUT the prefix, we need to prepend the correct prefix to the expanded path is correct
* Release 2.5.02.5.0Zeeshan Ali2018-10-142-1/+27
|
* build: Don't hardcode the path of python3Ting-Wei Lan2018-10-022-2/+2
| | | | | | | Hardcoding paths to interpreters seldom works on *BSD. The ports system allows users to choose their preferred installation prefix as long as it is not /usr. This makes it nearly impossible to have a common path of python3 which works on both GNU/Linux and *BSD.
* CI: Build with NMEA source enabledZeeshan Ali2018-09-251-3/+3
|
* CI: Always keep build artifactsZeeshan Ali2018-09-251-3/+3
|
* CI: Keep all build artifactsZeeshan Ali2018-09-251-3/+3
|
* build: Correct python pathZeeshan Ali2018-09-251-1/+1
| | | | On debian-based systems, there is no '/bin/python3'.
* build: Install demo agent to autostart directory tooZeeshan Ali2018-09-252-6/+40
| | | | We were doing this already but forgot to port this from autotools to meson.
* CI: Save artifacts on build failureZeeshan Ali2018-09-241-0/+15
|
* CI: Fetch gettext & ModemManager from distroZeeshan Ali2018-09-241-5/+1
| | | | I'm not sure why we were building these from sources.
* CI: no need to checkout geoclueZeeshan Ali2018-09-241-3/+3
| | | | | CI already does this for us. Before this change, we were always building the master branch and that meant merge requests weren't getting tested.
* Revert "build: Install demo agent to autostart directory too"Zeeshan Ali2018-09-242-26/+6
| | | | This reverts commit b8fa586f84c5fa485fe3924becc4ff2b08d55938.
* Revert "build: Pass absolute path of sysconfdir to install-file.py"Zeeshan Ali2018-09-241-2/+1
| | | | This reverts commit 3e9567962d6ea45d8929027dfec6e42ee0e951ca.
* build: Pass absolute path of sysconfdir to install-file.pyZeeshan Ali2018-09-241-1/+2
|
* build: Install demo agent to autostart directory tooZeeshan Ali2018-09-242-6/+26
| | | | We were doing this already but forgot to port this from autotools to meson.