diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-12-03 17:06:16 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-12-19 12:22:30 +0100 |
commit | 6c35878f12ab37604d85cb3a864e3859973bd195 (patch) | |
tree | 8cb47c2e08eed2a95be75c580a37ffbc8519cfec /introspection/org.freedesktop.ModemManager1.Modem.Location.xml | |
parent | aae96778c54a59dcf3955c2d81bee393c0348077 (diff) |
location: support updating the GPS refresh time
The default setup uses a refresh time of 30s, which means that even if the GPS
location updates are received at a higher frequency, the DBus interface will
still expose at most one update every 30s.
This patch includes a new "SetGpsRefreshTime()" method in the Location
interface, which takes a single 'u' parameter, specifying the refresh rate to
use, in seconds. This method also allows 0 being passed, which will make the
implementation to publish the GPS location updates are soon as ModemManager
detects them.
Along with the new method, a "GpsRefreshTime" read-only property is exposed
to specify the refresh time in effect.
The new method and property will only be applicable if the device has GPS
capabilities.
https://bugs.freedesktop.org/show_bug.cgi?id=89924
Diffstat (limited to 'introspection/org.freedesktop.ModemManager1.Modem.Location.xml')
-rw-r--r-- | introspection/org.freedesktop.ModemManager1.Modem.Location.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Location.xml b/introspection/org.freedesktop.ModemManager1.Modem.Location.xml index 93cf6406..c38f428f 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.Location.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.Location.xml @@ -80,6 +80,20 @@ </method> <!-- + SetGpsRefreshRate: + @rate: Rate, in seconds. + + Set the refresh rate of the GPS information in the API. If not explicitly + set, a default of 30s will be used. + + The refresh rate can be set to 0 to disable it, so that every update reported by + the modem is published in the interface. + --> + <method name="SetGpsRefreshRate"> + <arg name="rate" type="u" direction="in" /> + </method> + + <!-- Capabilities: Bitmask of <link linkend="MMModemLocationSource">MMModemLocationSource</link> @@ -290,5 +304,12 @@ --> <property name="SuplServer" type="s" access="read" /> + <!-- + GpsRefreshRate: + + Rate of refresh of the GPS information in the interface. + --> + <property name="GpsRefreshRate" type="u" access="read" /> + </interface> </node> |