| 951 | } |
| 952 | |
| 953 | bool is_plugin_opt(const struct opt_table *ot) |
| 954 | { |
| 955 | if (ot->type & OPT_NOARG) |
| 956 | return ot->cb == (void *)plugin_opt_flag_check; |
| 957 | |
| 958 | return ot->cb_arg == (void *)plugin_opt_string_check |
| 959 | || ot->cb_arg == (void *)plugin_opt_long_check |
| 960 | || ot->cb_arg == (void *)plugin_opt_bool_check; |
| 961 | } |
| 962 | |
| 963 | /* Sets *ret to false if it doesn't appear, otherwise, sets to value */ |
| 964 | static char *bool_setting(tal_t *ctx, |
no outgoing calls
no test coverage detected