| 51 | } |
| 52 | |
| 53 | static bool evaluate(void) { |
| 54 | /* |
| 55 | * Only start when neither a location nor fixed times |
| 56 | * for both events are specified in conf |
| 57 | */ |
| 58 | return !conf.wizard && |
| 59 | ((conf.day_conf.loc.lat == LAT_UNDEFINED || conf.day_conf.loc.lon == LON_UNDEFINED) && |
| 60 | (is_string_empty(conf.day_conf.day_events[SUNRISE]) || is_string_empty(conf.day_conf.day_events[SUNSET]))); |
| 61 | } |
| 62 | |
| 63 | /* |
| 64 | * Stop geoclue2 client and store latest location to cache. |
nothing calls this directly
no test coverage detected