* Stop and delete geoclue2 client. */
| 278 | * Stop and delete geoclue2 client. |
| 279 | */ |
| 280 | static void geoclue_client_delete(void) { |
| 281 | SYSBUS_ARG(stop_args, "org.freedesktop.GeoClue2", client, "org.freedesktop.GeoClue2.Client", "Stop"); |
| 282 | call(&stop_args, NULL); |
| 283 | |
| 284 | SYSBUS_ARG(del_args, "org.freedesktop.GeoClue2", "/org/freedesktop/GeoClue2/Manager", "org.freedesktop.GeoClue2.Manager", "DeleteClient"); |
| 285 | call(&del_args, "o", client); |
| 286 | } |
| 287 | |
| 288 | static void cache_location(void) { |
| 289 | if (state.current_loc.lat != LAT_UNDEFINED && state.current_loc.lon != LON_UNDEFINED) { |