| 2030 | } |
| 2031 | |
| 2032 | static bool currency_jsonfmt(struct command *cmd, |
| 2033 | struct json_stream *js, |
| 2034 | const char *fieldname, |
| 2035 | struct bkpr *bkpr) |
| 2036 | { |
| 2037 | if (!bkpr->currency) |
| 2038 | return false; |
| 2039 | json_add_string(js, fieldname, bkpr->currency->name); |
| 2040 | return true; |
| 2041 | } |
| 2042 | |
| 2043 | static char *option_currency(struct command *cmd, |
| 2044 | const char *arg, |
nothing calls this directly
no test coverage detected