mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-21 11:29:26 +00:00
29 lines
475 B
C++
29 lines
475 B
C++
#pragma once
|
|
|
|
#include "sinsp.h"
|
|
|
|
extern "C" {
|
|
#include "lua.h"
|
|
#include "lualib.h"
|
|
#include "lauxlib.h"
|
|
}
|
|
|
|
class sinsp_evt_formatter;
|
|
|
|
class digwatch_formats
|
|
{
|
|
public:
|
|
static void init(sinsp* inspector, lua_State *ls);
|
|
|
|
// formatter = digwatch.formatter(format_string)
|
|
static int formatter(lua_State *ls);
|
|
|
|
// formatted_string = digwatch.format_event(evt, formatter)
|
|
static int format_event(lua_State *ls);
|
|
|
|
static sinsp* s_inspector;
|
|
|
|
private:
|
|
lua_State* m_ls;
|
|
};
|