| 133 | static bool cli_distributed_coordinator(const cli_config *cfg) { |
| 134 | return cfg && cfg->engine.distributed.role == DS4_DISTRIBUTED_COORDINATOR; |
| 135 | } |
| 136 | |
| 137 | static void cli_dist_busy_set(const cli_config *cfg, bool busy) { |
| 138 | if (!cli_distributed_coordinator(cfg)) return; |
| 139 | cli_dist_busy = busy ? 1 : 0; |
| 140 | if (!busy) cli_dist_notice_printed = 0; |
| 141 | } |
| 142 | |
| 143 | static int cli_wait_distributed_route(const cli_config *cfg, ds4_session *session) { |
| 144 | if (!cli_distributed_coordinator(cfg)) return 0; |
| 145 | |
| 146 | char err[256] = {0}; |
no outgoing calls
no test coverage detected