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

Function destroy

src/modules/location.c:66–74  ·  view source on GitHub ↗

* Stop geoclue2 client and store latest location to cache. */

Source from the content-addressed store, hash-verified

64 * Stop geoclue2 client and store latest location to cache.
65 */
66static void destroy(void) {
67 if (!is_string_empty(client)) {
68 geoclue_client_delete();
69 }
70 /* Destroy this match slot */
71 if (slot) {
72 slot = sd_bus_slot_unref(slot);
73 }
74}
75
76static void receive(const msg_t *const msg, UNUSED const void* userdata) {
77 switch (MSG_TYPE()) {

Callers

nothing calls this directly

Calls 2

is_string_emptyFunction · 0.85
geoclue_client_deleteFunction · 0.85

Tested by

no test coverage detected