mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
push_connection, push_server also targetted for export, no?
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808727 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -614,7 +614,7 @@ AP_LUA_DECLARE(void) ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ap_lua_push_connection(lua_State *L, conn_rec *c)
|
AP_LUA_DECLARE(void) ap_lua_push_connection(lua_State *L, conn_rec *c)
|
||||||
{
|
{
|
||||||
lua_boxpointer(L, c);
|
lua_boxpointer(L, c);
|
||||||
luaL_getmetatable(L, "Apache2.Connection");
|
luaL_getmetatable(L, "Apache2.Connection");
|
||||||
@@ -631,7 +631,7 @@ void ap_lua_push_connection(lua_State *L, conn_rec *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ap_lua_push_server(lua_State *L, server_rec *s)
|
AP_LUA_DECLARE(void) ap_lua_push_server(lua_State *L, server_rec *s)
|
||||||
{
|
{
|
||||||
lua_boxpointer(L, s);
|
lua_boxpointer(L, s);
|
||||||
luaL_getmetatable(L, "Apache2.Server");
|
luaL_getmetatable(L, "Apache2.Server");
|
||||||
|
@@ -20,8 +20,10 @@
|
|||||||
#ifndef _LUA_REQUEST_H_
|
#ifndef _LUA_REQUEST_H_
|
||||||
#define _LUA_REQUEST_H_
|
#define _LUA_REQUEST_H_
|
||||||
|
|
||||||
AP_LUA_DECLARE(void) ap_lua_push_request(lua_State *L, request_rec *r);
|
|
||||||
AP_LUA_DECLARE(void) ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p);
|
AP_LUA_DECLARE(void) ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p);
|
||||||
|
AP_LUA_DECLARE(void) ap_lua_push_connection(lua_State *L, conn_rec *r);
|
||||||
|
AP_LUA_DECLARE(void) ap_lua_push_server(lua_State *L, server_rec *r);
|
||||||
|
AP_LUA_DECLARE(void) ap_lua_push_request(lua_State *L, request_rec *r);
|
||||||
|
|
||||||
#define APL_REQ_FUNTYPE_STRING 1
|
#define APL_REQ_FUNTYPE_STRING 1
|
||||||
#define APL_REQ_FUNTYPE_INT 2
|
#define APL_REQ_FUNTYPE_INT 2
|
||||||
|
Reference in New Issue
Block a user