| 695 | } |
| 696 | |
| 697 | static bool bootstrap_config_valid(const cbm_daemon_bootstrap_config_t *config, |
| 698 | const cbm_daemon_bootstrap_ops_t *ops) { |
| 699 | return config && ops && config->endpoint && config->identity && config->executable_path && |
| 700 | config->executable_path[0] && config->connect_timeout_ms > 0 && |
| 701 | config->startup_timeout_ms > 0 && ops->cohort_acquire && ops->cohort_release && |
| 702 | ops->probe && ops->startup_lock_try_acquire && ops->startup_lock_prepare_handoff && |
| 703 | ops->startup_lock_release && ops->spawn_daemon; |
| 704 | } |
| 705 | |
| 706 | cbm_daemon_bootstrap_status_t cbm_daemon_bootstrap_execute_with_ops( |
| 707 | const cbm_daemon_bootstrap_config_t *config, const cbm_daemon_bootstrap_ops_t *ops, |
no outgoing calls
no test coverage detected