diff --git a/userspace/falco/falco.cpp b/userspace/falco/falco.cpp index ec56060e..8b3cb59e 100644 --- a/userspace/falco/falco.cpp +++ b/userspace/falco/falco.cpp @@ -15,6 +15,7 @@ extern "C" { #include "lualib.h" #include "lauxlib.h" #include "lpeg.h" +#include "lyaml.h" } #include @@ -317,6 +318,7 @@ int falco_init(int argc, char **argv) ls = lua_open(); luaL_openlibs(ls); luaopen_lpeg(ls); + luaopen_yaml(ls); add_lua_path(ls, lua_dir); rules = new falco_rules(inspector, ls, lua_main_filename); diff --git a/userspace/falco/lyaml.h b/userspace/falco/lyaml.h new file mode 100644 index 00000000..cf11a2e4 --- /dev/null +++ b/userspace/falco/lyaml.h @@ -0,0 +1,6 @@ +#pragma once + +#include "lua.h" + +int luaopen_yaml (lua_State *L); +