httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r833141 - /httpd/httpd/trunk/modules/lua/lua_request.c
Date Thu, 05 Nov 2009 19:31:28 GMT
Author: brianm
Date: Thu Nov  5 19:31:27 2009
New Revision: 833141

URL: http://svn.apache.org/viewvc?rev=833141&view=rev
Log:
expose r->notes to lua

Modified:
    httpd/httpd/trunk/modules/lua/lua_request.c

Modified: httpd/httpd/trunk/modules/lua/lua_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=833141&r1=833140&r2=833141&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Thu Nov  5 19:31:27 2009
@@ -319,6 +319,11 @@
   return r->err_headers_out;
 }
 
+static apr_table_t* req_notes(request_rec *r)
+{
+  return r->notes;
+}
+
 /* END dispatch mathods for request_rec fields */
 
 static int req_dispatch(lua_State *L)
@@ -593,6 +598,9 @@
                  makefun(&req_headers_out, APL_REQ_FUNTYPE_TABLE, p));
     apr_hash_set(dispatch, "err_headers_out", APR_HASH_KEY_STRING,
                  makefun(&req_err_headers_out, APL_REQ_FUNTYPE_TABLE, p));
+    apr_hash_set(dispatch, "notes", APR_HASH_KEY_STRING,
+                 makefun(&req_notes, APL_REQ_FUNTYPE_TABLE, p));
+
     
 
     lua_pushlightuserdata(L, dispatch);



Mime
View raw message