* Stop geoclue2 client and store latest location to cache. */
| 64 | * Stop geoclue2 client and store latest location to cache. |
| 65 | */ |
| 66 | static 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 | |
| 76 | static void receive(const msg_t *const msg, UNUSED const void* userdata) { |
| 77 | switch (MSG_TYPE()) { |
nothing calls this directly
no test coverage detected