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. */
| 464 | * specified topic, i.e., whether the plugin has announced the topic |
| 465 | * correctly in its manifest. */ |
| 466 | static bool plugin_notification_allowed(const struct plugin *plugin, const char *topic) |
| 467 | { |
| 468 | for (size_t i=0; i<tal_count(plugin->notification_topics); i++) |
| 469 | if (streq(plugin->notification_topics[i], topic)) |
| 470 | return true; |
| 471 | |
| 472 | return false; |
| 473 | } |
| 474 | |
| 475 | /* Returns the error string, or NULL */ |
| 476 | static const char *plugin_notification_handle(struct plugin *plugin, |
no outgoing calls
no test coverage detected