1 parent
9a54f15e7e
commit
f94366104e
7 files changed
+100
-13
No files matched your search
@@ -44,6 +44,11 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
[[nodiscard]] bool ready() const noexcept
|
||||
{
|
||||
return config_ != "reject";
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
std::string config_;
|
||||
@@ -75,4 +80,9 @@ void void_plugin_configure(void* instance, const char* config)
|
||||
{
|
||||
static_cast<ConfigurablePlugin*>(instance)->apply_config(config);
|
||||
}
|
||||
|
||||
int void_plugin_ready(void* instance)
|
||||
{
|
||||
return static_cast<ConfigurablePlugin*>(instance)->ready() ? 0 : -1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user