| 2064 | } |
| 2065 | |
| 2066 | int main(int argc, char *argv[]) |
| 2067 | { |
| 2068 | struct bkpr *bkpr; |
| 2069 | setup_locale(); |
| 2070 | |
| 2071 | /* No datadir is default */ |
| 2072 | bkpr = tal(NULL, struct bkpr); |
| 2073 | bkpr->currency = NULL; |
| 2074 | bkpr->currency_rates = tal(bkpr, currencymap_t); |
| 2075 | bkpr->accounts = NULL; |
| 2076 | uintmap_init(bkpr->currency_rates); |
| 2077 | memleak_add_helper(bkpr->currency_rates, memleak_scan_currencyrates); |
| 2078 | plugin_main(argv, init, take(bkpr), PLUGIN_STATIC, true, NULL, |
| 2079 | commands, ARRAY_SIZE(commands), |
| 2080 | notifs, ARRAY_SIZE(notifs), |
| 2081 | NULL, 0, |
| 2082 | NULL, 0, |
| 2083 | plugin_option_dynamic("bkpr-currency", |
| 2084 | "string", |
| 2085 | "Look up and record this currency on each event", |
| 2086 | option_currency, currency_jsonfmt, bkpr), |
| 2087 | NULL); |
| 2088 | |
| 2089 | return 0; |
| 2090 | } |
nothing calls this directly
no test coverage detected