MCPcopy Create free account
hub / github.com/FedeDP/Clight / geoclue_client_delete

Function geoclue_client_delete

src/modules/location.c:280–286  ·  view source on GitHub ↗

* Stop and delete geoclue2 client. */

Source from the content-addressed store, hash-verified

278 * Stop and delete geoclue2 client.
279 */
280static 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
288static void cache_location(void) {
289 if (state.current_loc.lat != LAT_UNDEFINED && state.current_loc.lon != LON_UNDEFINED) {

Callers 1

destroyFunction · 0.85

Calls 1

callFunction · 0.85

Tested by

no test coverage detected