| 100 | } |
| 101 | |
| 102 | static bool plugins_any_in_state(const struct plugins *plugins, |
| 103 | enum plugin_state state) |
| 104 | { |
| 105 | const struct plugin *p; |
| 106 | |
| 107 | list_for_each(&plugins->plugins, p, list) { |
| 108 | if (p->plugin_state == state) |
| 109 | return true; |
| 110 | } |
| 111 | return false; |
| 112 | } |
| 113 | |
| 114 | static bool plugins_all_in_state(const struct plugins *plugins, |
| 115 | enum plugin_state state) |
no outgoing calls
no test coverage detected