Load statically-linked lyaml lib and lua bindings

This commit is contained in:
Henri DF 2016-05-04 11:01:00 -07:00
parent 1703d048c3
commit 77a3e3b110
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,7 @@ extern "C" {
#include "lualib.h"
#include "lauxlib.h"
#include "lpeg.h"
#include "lyaml.h"
}
#include <sinsp.h>
@ -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);

6
userspace/falco/lyaml.h Normal file
View File

@ -0,0 +1,6 @@
#pragma once
#include "lua.h"
int luaopen_yaml (lua_State *L);