MCPcopy Create free account
hub / github.com/ElementsProject/lightning / find_notification_by_topic

Function find_notification_by_topic

lightningd/notification.c:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <lightningd/notification.h>
7
8static 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
21bool notifications_topic_is_native(const char *topic)
22{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected