| 2566 | } |
| 2567 | |
| 2568 | void plugins_set_builtin_plugins_dir(struct plugins *plugins, |
| 2569 | const char *dir) |
| 2570 | { |
| 2571 | /*~ Load the builtin plugins as important. */ |
| 2572 | for (size_t i = 0; list_of_builtin_plugins[i]; ++i) { |
| 2573 | struct plugin *p = plugin_register( |
| 2574 | plugins, |
| 2575 | take(path_join(NULL, dir, list_of_builtin_plugins[i])), |
| 2576 | NULL, |
| 2577 | /* important = */ |
| 2578 | !streq(list_of_builtin_plugins[i], "cln-renepay"), NULL, |
| 2579 | NULL); |
| 2580 | if (!p) |
| 2581 | log_unusual( |
| 2582 | plugins->log, "failed to register plugin %s", |
| 2583 | path_join(tmpctx, dir, list_of_builtin_plugins[i])); |
| 2584 | } |
| 2585 | } |
| 2586 | |
| 2587 | static bool release_request(const char *id, |
| 2588 | struct jsonrpc_request *req, |
no test coverage detected