| 1278 | } |
| 1279 | |
| 1280 | int cbm_watcher_index_failure_count(cbm_watcher_t *w, const char *project_name) { |
| 1281 | if (!w || !project_name) { |
| 1282 | return -1; |
| 1283 | } |
| 1284 | cbm_mutex_lock(&w->projects_lock); |
| 1285 | project_state_t *s = cbm_ht_get(w->projects, project_name); |
| 1286 | int failures = s ? s->index_failures : -1; |
| 1287 | cbm_mutex_unlock(&w->projects_lock); |
| 1288 | return failures; |
| 1289 | } |
| 1290 | |
| 1291 | bool cbm_watcher_project_info(cbm_watcher_t *w, const char *project_name, |
| 1292 | cbm_watcher_project_info_t *out) { |
no test coverage detected