| 403 | } |
| 404 | |
| 405 | static void wd_resource_check_fn (void* resource_ref) |
| 406 | { |
| 407 | struct resource* ref = (struct resource*)resource_ref; |
| 408 | |
| 409 | if (wd_resource_state_is_ok (ref) == CS_FALSE) { |
| 410 | cs_fsm_process(&ref->fsm, WD_E_FAILURE, ref, wd_fsm_cb); |
| 411 | return; |
| 412 | } |
| 413 | api->timer_add_duration(ref->check_timeout*MILLI_2_NANO_SECONDS, |
| 414 | ref, wd_resource_check_fn, &ref->check_timer); |
| 415 | } |
| 416 | |
| 417 | /* |
| 418 | * return 0 - fully configured |
nothing calls this directly
no test coverage detected