MINOR: hlua/event_hdl: expose proxy_uuid variable in server events
Adding proxy_uuid to ServerEvent class. proxy_uuid contains the uuid of the proxy to which the server belongs
This commit is contained in:
parent
3d9bf4e1a5
commit
55f84c7cab
|
@ -1405,6 +1405,10 @@ ServerEvent class
|
|||
|
||||
Contains the name of the proxy to which the server belongs
|
||||
|
||||
.. js:attribute:: ServerEvent.proxy_uuid
|
||||
|
||||
Contains the uuid of the proxy to which the server belongs
|
||||
|
||||
.. js:attribute:: ServerEvent.reference
|
||||
|
||||
Reference to the live server (A :ref:`server_class`).
|
||||
|
|
|
@ -9059,6 +9059,10 @@ __LJMP static int hlua_event_hdl_cb_data_push_args(struct hlua_event_sub *hlua_s
|
|||
lua_pushstring(hlua->T, "proxy_name");
|
||||
lua_pushstring(hlua->T, e_server->safe.proxy_name);
|
||||
lua_settable(hlua->T, -3);
|
||||
/* Add server proxy uuid */
|
||||
lua_pushstring(hlua->T, "proxy_uuid");
|
||||
lua_pushinteger(hlua->T, e_server->safe.proxy_uuid);
|
||||
lua_settable(hlua->T, -3);
|
||||
|
||||
/* attempt to provide reference server object
|
||||
* (if it wasn't removed yet, SERVER_DEL will never succeed here)
|
||||
|
|
Loading…
Reference in New Issue