MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / lmpfs_internal_scan_plugins

Function lmpfs_internal_scan_plugins

src/api/lmpfs.cpp:640–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638// mount + tree/cat then reach the same VFS that Engine::create
639// constructs, with /plugins/<plugin>/ wired up.
640extern "C" LMPFS_API void lmpfs_internal_scan_plugins(lmpfs::Engine* eng) {
641 if (!eng) {
642 log::info("plugin: scan called with null engine — nothing to do");
643 return;
644 }
645 log::info("plugin: scan_plugins entered (LMPFS_PLUGINS_DIR={})",
646 std::getenv("LMPFS_PLUGINS_DIR") ? std::getenv("LMPFS_PLUGINS_DIR") : "(unset)");
647 try { scan_and_load_plugins(eng); }
648 catch (const std::exception& e) {
649 log::warn("plugin: scan failed — {}", e.what());
650 } catch (...) {
651 log::warn("plugin: scan failed (unknown)");
652 }
653}

Callers 1

mainFunction · 0.85

Calls 3

infoFunction · 0.85
scan_and_load_pluginsFunction · 0.85
warnFunction · 0.85

Tested by

no test coverage detected