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
Showing
- cli/mmcli-modem-location.c 88 additions, 5 deletionscli/mmcli-modem-location.c
- docs/reference/libmm-glib/libmm-glib-sections.txt 10 additions, 0 deletionsdocs/reference/libmm-glib/libmm-glib-sections.txt
- introspection/org.freedesktop.ModemManager1.Modem.Location.xml 21 additions, 0 deletions...spection/org.freedesktop.ModemManager1.Modem.Location.xml
- libmm-glib/mm-modem-location.c 103 additions, 0 deletionslibmm-glib/mm-modem-location.c
- libmm-glib/mm-modem-location.h 15 additions, 0 deletionslibmm-glib/mm-modem-location.h
- src/mm-iface-modem-location.c 102 additions, 2 deletionssrc/mm-iface-modem-location.c
Loading
Please register or sign in to comment