2014-08-16 16:29 GMT+04:00 Hartmut Kaiser
- the ability to extract a list of plugin object names from a given shared library ( I assume that your library allows to have several plugin types in the same shared library)
Could be queried using the bool res = lib.search_symbol("some_name_of_the_plugin")
That's not what I meant. You're suggesting to find a known symbol. I was suggesting to find the list of names for the existing (unknown) plugins.
This can be currently achieved using the following:
// in plugin/dll
namespace foo {
std::vectorstd::string list_plugins();
}
BOOST_PLUGIN_ALIAS(foo::list_plugins, list_plugins)
// in code that uses plugin
shared_library lib(path_to_lib);
auto plugins = lib.get