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

Function init

tests/plugins/test_libplugin.c:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112#endif /* DEVELOPER */
113
114static const char *init(struct plugin *p,
115 const char *buf UNUSED,
116 const jsmntok_t *config UNUSED)
117{
118 plugin_log(p, LOG_DBG, "test_libplugin initialised!");
119
120 if (self_disable)
121 return "Disabled via selfdisable option";
122
123#if DEVELOPER
124 plugin_set_memleak_handler(p, memleak_mark);
125#endif
126
127 return NULL;
128}
129
130static const struct plugin_command commands[] = { {
131 "helloworld",

Callers

nothing calls this directly

Calls 2

plugin_logFunction · 0.50

Tested by

no test coverage detected