1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

mod_lua: Redesign the table construction/access mechanism, so we pass on a struct with the request_rec, the table pointer and the table name instead of just the table pointer. This allows us to use the request_rec for logging/editing purposes, as well as inform the user which exact table in the request_rec was modified.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1582858 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2014-03-28 18:38:41 +00:00
parent 8ae663bc78
commit d38e1b6e83
5 changed files with 74 additions and 30 deletions

View File

@@ -38,6 +38,15 @@ typedef struct
int type;
} req_fun_t;
/* Struct to use as userdata for request_rec tables */
typedef struct
{
request_rec *r; /* Request_rec */
apr_table_t *t; /* apr_table_t* */
const char *n; /* name of table */
} req_table_t;
typedef struct {
int type;
size_t size;