blob: 9e27a2662d4c351e11792281b95be5e892c1ef58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "smolblok.hpp"
#include <spdlog/spdlog.h>
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;
}
|