Allow Lua sample_dir to be passed to falco_engine constructor

FALCO_ENGINE_SOURCE_LUA_DIR is still the default but can be
overridden now.
This commit is contained in:
Grzegorz Nosek
2018-08-13 18:24:45 +02:00
committed by Grzegorz Nosek
parent e8ba42cae4
commit 071e7dff17
3 changed files with 5 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ along with falco. If not, see <http://www.gnu.org/licenses/>.
#include "rules.h"
#include "config_falco_engine.h"
#include "falco_common.h"
//
@@ -38,7 +39,7 @@ along with falco. If not, see <http://www.gnu.org/licenses/>.
class falco_engine : public falco_common
{
public:
falco_engine(bool seed_rng=true);
falco_engine(bool seed_rng=true, const std::string& rules_dir=FALCO_ENGINE_SOURCE_LUA_DIR);
virtual ~falco_engine();
//