Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lua_request.h
Go to the documentation of this file.
1 
18 #ifndef _LUA_REQUEST_H_
19 #define _LUA_REQUEST_H_
20 
21 #include "mod_lua.h"
22 #include "util_varbuf.h"
23 
24 void ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p);
25 void ap_lua_push_connection(lua_State *L, conn_rec *r);
26 void ap_lua_push_server(lua_State *L, server_rec *r);
27 void ap_lua_push_request(lua_State *L, request_rec *r);
28 
29 #define APL_REQ_FUNTYPE_STRING 1
30 #define APL_REQ_FUNTYPE_INT 2
31 #define APL_REQ_FUNTYPE_TABLE 3
32 #define APL_REQ_FUNTYPE_LUACFUN 4
33 #define APL_REQ_FUNTYPE_BOOLEAN 5
34 
35 typedef struct
36 {
37  const void *fun;
38  int type;
39 } req_fun_t;
40 
41 
42 /* Struct to use as userdata for request_rec tables */
43 typedef struct
44 {
45  request_rec *r; /* Request_rec */
46  apr_table_t *t; /* apr_table_t* */
47  const char *n; /* name of table */
48 } req_table_t;
49 
50 typedef struct {
51  int type;
52  size_t size;
53  size_t vb_size;
54  lua_Number number;
55  struct ap_varbuf vb;
57 
58 #endif /* !_LUA_REQUEST_H_ */
Definition: util_varbuf.h:47
const char * n
Definition: lua_request.h:47
void ap_lua_push_server(lua_State *L, server_rec *r)
size_t vb_size
Definition: lua_request.h:53
int type
Definition: lua_request.h:51
void ap_lua_push_connection(lua_State *L, conn_rec *r)
Definition: lua_request.h:35
apr_table_t * t
Definition: lua_request.h:46
const void * fun
Definition: lua_request.h:37
Structure to store things which are per connection.
Definition: httpd.h:1116
Definition: lua_request.h:43
Definition: lua_request.h:50
int type
Definition: lua_request.h:38
A structure to store information for each virtual server.
Definition: httpd.h:1307
size_t size
Definition: lua_request.h:52
void ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p)
void ap_lua_push_request(lua_State *L, request_rec *r)
request_rec * r
Definition: lua_request.h:45
apr_pool_t * p
A structure that represents the current request.
Definition: httpd.h:806
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
request_rec * r
Definition: mod_dav.h:515
lua_Number number
Definition: lua_request.h:54
Apache resizable variable length buffer library.