carb::loadPluginsFromPatterns

Defined in carb/StartupUtils.h

inline void carb::loadPluginsFromPatterns(const char *const *pluginNamePatterns, size_t pluginNamePatternCount, const char *const *searchPaths = nullptr, size_t searchPathCount = 0)

Simple plugin loading function wrapper that loads plugins matching multiple patterns.

Consider using carb::startupFramework(), which calls this function with user defined paths via config files, the environment, and the command line.

Parameters
  • pluginNamePatterns – String that contains plugin names pattern - wildcards are supported.

  • pluginNamePatternCount – Number of items in pluginNamePatterns.

  • searchPaths – Array of paths to look for plugins in.

  • searchPathCount – Number of paths in searchPaths array.