| 6 | #include <lightningd/notification.h> |
| 7 | |
| 8 | bool notifications_topic_is_native(const char *topic) |
| 9 | { |
| 10 | static const char **notilist = NULL; |
| 11 | static size_t num_notis; |
| 12 | if (!notilist) |
| 13 | notilist = cast_const2(const char **, |
| 14 | autodata_get(notifications, &num_notis)); |
| 15 | |
| 16 | for (size_t i=0; i<num_notis; i++) |
| 17 | if (streq(notilist[i], topic)) |
| 18 | return true; |
| 19 | return false; |
| 20 | } |
| 21 | |
| 22 | bool notifications_have_topic(const struct plugins *plugins, const char *topic) |
| 23 | { |
no outgoing calls
no test coverage detected