Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mod_lua.h File Reference
#include <stdio.h>
#include "httpd.h"
#include "http_core.h"
#include "http_config.h"
#include "http_request.h"
#include "http_log.h"
#include "http_protocol.h"
#include "ap_regex.h"
#include "ap_config.h"
#include "util_filter.h"
#include "apr_thread_rwlock.h"
#include "apr_strings.h"
#include "apr_tables.h"
#include "apr_hash.h"
#include "apr_buckets.h"
#include "apr_file_info.h"
#include "apr_time.h"
#include "apr_hooks.h"
#include "apr_reslist.h"
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "lua_request.h"
#include "lua_vmprep.h"
Include dependency graph for mod_lua.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ap_lua_dir_cfg
 
struct  ap_lua_server_cfg
 
struct  mapped_request_details
 
struct  ap_lua_request_cfg
 
struct  ap_lua_filter_ctx
 

Macros

#define LUA_COMPAT_ALL
 
#define LUA_COMPAT_5_2
 
#define LUA_COMPAT_5_1
 
#define LUA_COMPAT_MODULE
 
#define lua_rawlen(L, i)   lua_objlen(L, (i))
 
#define AP_LUA_DECLARE(type)   type
 
#define AP_LUA_DECLARE_NONSTD(type)   type
 
#define AP_LUA_DECLARE_DATA
 

Enumerations

enum  ap_lua_inherit_t { AP_LUA_INHERIT_UNSET = -1, AP_LUA_INHERIT_NONE = 0, AP_LUA_INHERIT_PARENT_FIRST = 1, AP_LUA_INHERIT_PARENT_LAST = 2 }
 

Functions

void ap_lua_rstack_dump (lua_State *L, request_rec *r, const char *msg)
 
int ap_lua_hook_lua_open (lua_State *L, apr_pool_t *p)
 
int ap_lua_hook_lua_request (lua_State *L, request_rec *r)
 
const char * ap_lua_ssl_val (apr_pool_t *p, server_rec *s, conn_rec *c, request_rec *r, const char *var)
 
int ap_lua_ssl_is_https (conn_rec *c)
 

Variables

module AP_MODULE_DECLARE_DATA lua_module
 

Macro Definition Documentation

#define AP_LUA_DECLARE (   type)    type
#define AP_LUA_DECLARE_DATA
#define AP_LUA_DECLARE_NONSTD (   type)    type
#define LUA_COMPAT_5_1
#define LUA_COMPAT_5_2
#define LUA_COMPAT_ALL

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

#define LUA_COMPAT_MODULE
#define lua_rawlen (   L,
 
)    lua_objlen(L, (i))

Enumeration Type Documentation

Enumerator
AP_LUA_INHERIT_UNSET 
AP_LUA_INHERIT_NONE 
AP_LUA_INHERIT_PARENT_FIRST 
AP_LUA_INHERIT_PARENT_LAST 

Function Documentation

int ap_lua_hook_lua_open ( lua_State *  L,
apr_pool_t p 
)
int ap_lua_hook_lua_request ( lua_State *  L,
request_rec r 
)
void ap_lua_rstack_dump ( lua_State *  L,
request_rec r,
const char *  msg 
)

make a userdata out of a C pointer, and vice versa instead of using lightuserdata

int ap_lua_ssl_is_https ( conn_rec c)
const char* ap_lua_ssl_val ( apr_pool_t p,
server_rec s,
conn_rec c,
request_rec r,
const char *  var 
)

Variable Documentation