mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-29 14:28:03 +00:00
MINOR: lua: Rename hlua_action_wake_time() to hlua_set_wake_time()
This function does not depends on the action class. So use a more generic name. It will be easier to bind it on another class if necessary.
This commit is contained in:
parent
d8f0e073dd
commit
501465d94b
@ -6485,10 +6485,9 @@ __LJMP static int hlua_register_fetches(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function is a lua binding to set the wake_time from an action. It is
|
/* This function is a lua binding to set the wake_time.
|
||||||
* only used if the action return ACT_RET_YIELD.
|
|
||||||
*/
|
*/
|
||||||
__LJMP static int hlua_action_wake_time(lua_State *L)
|
__LJMP static int hlua_set_wake_time(lua_State *L)
|
||||||
{
|
{
|
||||||
struct hlua *hlua = hlua_gethlua(L);
|
struct hlua *hlua = hlua_gethlua(L);
|
||||||
unsigned int delay;
|
unsigned int delay;
|
||||||
@ -8096,7 +8095,7 @@ void hlua_init(void)
|
|||||||
hlua_class_const_int(gL.T, "ABORT", ACT_RET_ABRT);
|
hlua_class_const_int(gL.T, "ABORT", ACT_RET_ABRT);
|
||||||
hlua_class_const_int(gL.T, "INVALID", ACT_RET_INV);
|
hlua_class_const_int(gL.T, "INVALID", ACT_RET_INV);
|
||||||
|
|
||||||
hlua_class_function(gL.T, "wake_time", hlua_action_wake_time);
|
hlua_class_function(gL.T, "wake_time", hlua_set_wake_time);
|
||||||
|
|
||||||
lua_setglobal(gL.T, "act");
|
lua_setglobal(gL.T, "act");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user