MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_PluginLoadFromPath

Function WasmEdge_PluginLoadFromPath

lib/api/wasmedge.cpp:3820–3824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3818}
3819
3820WASMEDGE_CAPI_EXPORT void
3821WasmEdge_PluginLoadFromPath(const char *Path) noexcept {
3822 // Not genPath(): this is noexcept and absolute() can throw.
3823 WasmEdge::Plugin::Plugin::load(std::filesystem::path(Path ? Path : ""));
3824}
3825
3826WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_PluginListPluginsLength(void) noexcept {
3827 return static_cast<uint32_t>(WasmEdge::Plugin::Plugin::plugins().size());

Callers 3

TESTFunction · 0.85
createModuleCFunction · 0.85
createModuleCPPFunction · 0.85

Calls 1

loadFunction · 0.50

Tested by 3

TESTFunction · 0.68
createModuleCFunction · 0.68
createModuleCPPFunction · 0.68