From 77a3e3b1102ad4058f48194ec03d0be0c7188d5c Mon Sep 17 00:00:00 2001 From: Henri DF Date: Wed, 4 May 2016 11:01:00 -0700 Subject: [PATCH] Load statically-linked lyaml lib and lua bindings --- userspace/falco/falco.cpp | 2 ++ userspace/falco/lyaml.h | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 userspace/falco/lyaml.h 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); +