| 2554 | } |
| 2555 | |
| 2556 | void plugins_set_builtin_plugins_dir(struct plugins *plugins, |
| 2557 | const char *dir) |
| 2558 | { |
| 2559 | /*~ Load the builtin plugins as important. */ |
| 2560 | for (size_t i = 0; list_of_builtin_plugins[i]; ++i) { |
| 2561 | struct plugin *p = plugin_register( |
| 2562 | plugins, |
| 2563 | take(path_join(NULL, dir, list_of_builtin_plugins[i])), |
| 2564 | NULL, |
| 2565 | /* important = */ |
| 2566 | !streq(list_of_builtin_plugins[i], "cln-renepay"), NULL, |
| 2567 | NULL); |
| 2568 | if (!p) |
| 2569 | log_unusual( |
| 2570 | plugins->log, "failed to register plugin %s", |
| 2571 | path_join(tmpctx, dir, list_of_builtin_plugins[i])); |
| 2572 | } |
| 2573 | } |
| 2574 | |
| 2575 | static bool release_request(const char *id, |
| 2576 | struct jsonrpc_request *req, |
no test coverage detected