forked from draios/sysdig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlua_parser_api.h
46 lines (35 loc) · 1.17 KB
/
lua_parser_api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
Copyright (C) 2013-2014 Draios inc.
This file is part of sysdig.
sysdig is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
sysdig is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with sysdig. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
class lua_parser_cbacks
{
public:
// filter.rel_expr(field_name, cmpop, value, index)
// field_name and cmpop are mandatory
// value is mandatory unless cmpop=="exists"
// index is an optional index (integer) that will be written
// into events matching this expression (internal use).
static int rel_expr(lua_State *ls);
// filter.bool_op(op)
static int bool_op(lua_State *ls);
// filter.nest()
static int nest(lua_State *ls);
// filter.unnest()
static int unnest(lua_State *ls);
};