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

Function main

tests/plugins/test_libplugin.c:176–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174};
175
176int main(int argc, char *argv[])
177{
178 setup_locale();
179 plugin_main(argv, init, PLUGIN_RESTARTABLE, true, NULL,
180 commands, ARRAY_SIZE(commands),
181 notifs, ARRAY_SIZE(notifs), hooks, ARRAY_SIZE(hooks),
182 NULL, 0, /* Notification topics we publish */
183 plugin_option("name",
184 "string",
185 "Who to say hello to.",
186 charp_option, &name_option),
187 plugin_option_deprecated("name-deprecated",
188 "string",
189 "Who to say hello to.",
190 charp_option, &name_option),
191 plugin_option("selfdisable",
192 "flag",
193 "Whether to disable.",
194 flag_option, &self_disable),
195 plugin_option("dont_shutdown",
196 "flag",
197 "Whether to timeout when asked to shutdown.",
198 flag_option, &dont_shutdown),
199 NULL);
200}

Callers

nothing calls this directly

Calls 3

setup_localeFunction · 0.85
plugin_mainFunction · 0.85
plugin_optionClass · 0.50

Tested by

no test coverage detected