Skip to content

Commit

Permalink
Merge pull request #7 from nvidianz/support-multi-processors
Browse files Browse the repository at this point in the history
Support multiple plugins
  • Loading branch information
ZiyueXu77 authored May 30, 2024
2 parents d7a6da6 + 032b14d commit ea9b298
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/processing/processor_loader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ namespace processing {
return new MockProcessor();
}

auto lib_name = "libproc_" + plugin_name;
// The plugin name may contain a colon
std::string::size_type pos = plugin_name.find(':');
std::string lib_suffix;
if (pos != std::string::npos) {
lib_suffix = plugin_name.substr(0, pos);
}
else {
lib_suffix = plugin_name;
}

auto lib_name = "libproc_" + lib_suffix;

auto extension =
#if defined(_WIN32) || defined(_WIN64)
Expand Down

0 comments on commit ea9b298

Please sign in to comment.