| 1278 | } |
| 1279 | |
| 1280 | static void application_watcher_project_pruned(void *context, const char *project) { |
| 1281 | cbm_daemon_application_t *application = context; |
| 1282 | if (!application || !project) { |
| 1283 | return; |
| 1284 | } |
| 1285 | cbm_mutex_lock(&application->mutex); |
| 1286 | cbm_daemon_application_watch_t *watch = application_find_watch_locked(application, project); |
| 1287 | if (watch) { |
| 1288 | /* The watcher already removed its physical entry. Invalidate every |
| 1289 | * logical subscriber so a later successful index can re-register it. */ |
| 1290 | application_remove_watch_entry_locked(application, watch, false); |
| 1291 | } |
| 1292 | cbm_mutex_unlock(&application->mutex); |
| 1293 | } |
| 1294 | |
| 1295 | static bool application_session_mutation_begin(void *context, const char *project) { |
| 1296 | cbm_daemon_application_session_t *session = context; |
nothing calls this directly
no test coverage detected