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

Function main

plugins/spender/main.c:19–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19int main(int argc, char **argv)
20{
21 struct plugin_command *commands;
22 struct plugin_notification *notifs;
23
24 setup_locale();
25
26 commands = tal_arr(NULL, struct plugin_command, 0);
27
28 tal_expand(&commands, multiwithdraw_commands, num_multiwithdraw_commands);
29 tal_expand(&commands, fundchannel_commands, num_fundchannel_commands);
30 tal_expand(&commands, multifundchannel_commands, num_multifundchannel_commands);
31 tal_expand(&commands, splice_commands, num_splice_commands);
32 /* tal_expand(&commands, whatever_commands, num_whatever_commands); */
33
34 notifs = tal_arr(NULL, struct plugin_notification, 0);
35 tal_expand(&notifs, openchannel_notifs, num_openchannel_notifs);
36
37 plugin_main(argv, &spender_init, NULL, PLUGIN_STATIC, true,
38 NULL,
39 take(commands), tal_count(commands),
40 take(notifs), tal_count(notifs),
41 NULL, 0,
42 NULL, 0, /* Notification topics */
43 NULL);
44
45 return 0;
46}

Callers

nothing calls this directly

Calls 2

setup_localeFunction · 0.85
plugin_mainFunction · 0.50

Tested by

no test coverage detected