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