mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 23:44:41 +00:00
3d4a675f24
This patch adds a Lua post initialisation wrapper. It already exists for pure Lua function, now it executes also C. It is useful for doing things when the configuration is ready to use. For example we can can browse and register all the proxies.
14 lines
559 B
C
14 lines
559 B
C
#ifndef _PROTO_HLUA_FCN_H
|
|
#define _PROTO_HLUA_FCN_H
|
|
|
|
void hlua_class_const_int(lua_State *L, const char *name, int value);
|
|
void hlua_class_const_str(lua_State *L, const char *name, const char *value);
|
|
void hlua_class_function(lua_State *L, const char *name, int (*function)(lua_State *L));
|
|
void *hlua_checkudata(lua_State *L, int ud, int class_ref);
|
|
int hlua_register_metatable(struct lua_State *L, char *name);
|
|
int hlua_fcn_post_init(lua_State *L);
|
|
int hlua_fcn_reg_core_fcn(lua_State *L);
|
|
int hlua_dump_object(lua_State *L);
|
|
|
|
#endif /* _PROTO_HLUA_FCN_H */
|