1
0
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:
William A. Rowe Jr
2009-08-28 01:40:44 +00:00
parent a38b9f9117
commit 0da446e9ea
2 changed files with 5 additions and 3 deletions

View File

@@ -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");

View File

@@ -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