Check if the plugin is allowed to send a notification of the * specified topic, i.e., whether the plugin has announced the topic * correctly in its manifest. */
| 568 | * specified topic, i.e., whether the plugin has announced the topic |
| 569 | * correctly in its manifest. */ |
| 570 | static bool plugin_notification_allowed(const struct plugin *plugin, const char *topic) |
| 571 | { |
| 572 | for (size_t i=0; i<tal_count(plugin->notification_topics); i++) |
| 573 | if (streq(plugin->notification_topics[i], topic)) |
| 574 | return true; |
| 575 | |
| 576 | return false; |
| 577 | } |
| 578 | |
| 579 | /* Returns the error string, or NULL */ |
| 580 | static const char *plugin_notification_handle(struct plugin *plugin, |
no outgoing calls
no test coverage detected