Skip to content

Commit

Permalink
Added support for multiple plugins in a single lib
Browse files Browse the repository at this point in the history
  • Loading branch information
nvidianz committed May 30, 2024
1 parent d7a6da6 commit 032b14d
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 032b14d

Please sign in to comment.