| 17 | } |
| 18 | |
| 19 | int 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(¬ifs, 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 | } |
nothing calls this directly
no test coverage detected