1 /*
2  * include/haproxy/hlua_fcn.h
3  * Lua user-level management functions
4  *
5  * Copyright (C) 2015-2016 Thierry Fournier <tfournier@arpalert.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation, version 2.1
10  * exclusively.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20  */
21 
22 #ifndef _HAPROXY_HLUA_FCN_H
23 #define _HAPROXY_HLUA_FCN_H
24 
25 #include <lua.h>
26 
27 int hlua_checkboolean(lua_State *L, int index);
28 
29 void hlua_class_const_int(lua_State *L, const char *name, int value);
30 void hlua_class_const_str(lua_State *L, const char *name, const char *value);
31 void hlua_class_function(lua_State *L, const char *name, int (*function)(lua_State *L));
32 void *hlua_checkudata(lua_State *L, int ud, int class_ref);
33 int hlua_register_metatable(struct lua_State *L, char *name);
34 int hlua_fcn_post_init(lua_State *L);
35 int hlua_fcn_reg_core_fcn(lua_State *L);
36 int hlua_dump_object(lua_State *L);
37 
38 #endif /* _HAPROXY_HLUA_FCN_H */
39