* Determine whether a plugin is subscribed to a given topic/method. */
| 2017 | * Determine whether a plugin is subscribed to a given topic/method. |
| 2018 | */ |
| 2019 | static bool plugin_subscriptions_contains(struct plugin *plugin, |
| 2020 | const char *method) |
| 2021 | { |
| 2022 | for (size_t i = 0; i < tal_count(plugin->subscriptions); i++) |
| 2023 | if (streq(method, plugin->subscriptions[i])) |
| 2024 | return true; |
| 2025 | |
| 2026 | return false; |
| 2027 | } |
| 2028 | |
| 2029 | bool plugin_single_notify(struct plugin *p, |
| 2030 | const struct jsonrpc_notification *n TAKES) |
no outgoing calls
no test coverage detected