plugin: Add subscriptions when processing the plugin manifest

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2018-12-12 14:36:11 +01:00
parent 9ad2f57e46
commit 7355e62964
4 changed files with 72 additions and 2 deletions

13
lightningd/notification.c Normal file
View File

@@ -0,0 +1,13 @@
#include "lightningd/notification.h"
#include <ccan/array_size/array_size.h>
const char *notification_topics[] = {
};
bool notifications_have_topic(const char *topic)
{
for (size_t i=0; ARRAY_SIZE(notification_topics); i++)
if (streq(topic, notification_topics[i]))
return true;
return false;
}