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

Function notifications_topic_is_native

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

Source from the content-addressed store, hash-verified

6#include <lightningd/notification.h>
7
8bool 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
22bool notifications_have_topic(const struct plugins *plugins, const char *topic)
23{

Callers 2

plugin_notifications_addFunction · 0.85
notifications_have_topicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected