update folder plugins
This commit is contained in:
@@ -14,6 +14,7 @@ PreferredLayer::~PreferredLayer(){}
|
||||
|
||||
unsigned char PreferredLayer::interpretValue(unsigned char value)
|
||||
{
|
||||
printf("TEST PLUGIN !!!\n");
|
||||
// check if the static value is above the unknown or lethal thresholds
|
||||
if(value == 0) return NO_INFORMATION;
|
||||
else if (value >= *this->threshold_)
|
||||
@@ -24,11 +25,11 @@ unsigned char PreferredLayer::interpretValue(unsigned char value)
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static PluginPtr create_preferred_plugin() {
|
||||
static PluginStaticLayerPtr create_preferred_plugin() {
|
||||
return std::make_shared<PreferredLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
BOOST_DLL_ALIAS(create_preferred_plugin, create_plugin)
|
||||
BOOST_DLL_ALIAS(create_preferred_plugin, create_plugin_static_layer)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user