#include "smolblok.hpp" #include int main(int argc, char** argv) { if(argc != 2) { spdlog::error("usage: {} path/to/plugin.so", argv[0]); return -1; } smolblok filter; { const auto r = filter.registerFormatPlugin("unused", argv[1]); if(r.loaded) { spdlog::info("Loaded plugin {}", argv[1]); } else { spdlog::error("Failed loading plugin {}", argv[1]); spdlog::error(qUtf8Printable(r.error)); return -1; } } return 0; }