Apache2
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 "http_ssl.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_rawlen(L, i)   lua_objlen(L, (i))
 
#define luaL_setfuncs_compat(a, b)   luaL_register(a,NULL,b)
 
#define lua_resume(a, b, c)   (*(c) = 1, lua_resume(a, b))
 
#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

◆ AP_LUA_DECLARE

#define AP_LUA_DECLARE (   type)    type

◆ AP_LUA_DECLARE_DATA

#define AP_LUA_DECLARE_DATA

◆ AP_LUA_DECLARE_NONSTD

#define AP_LUA_DECLARE_NONSTD (   type)    type

◆ lua_rawlen

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

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.

◆ lua_resume

#define lua_resume (   a,
  b,
 
)    (*(c) = 1, lua_resume(a, b))

◆ luaL_setfuncs_compat

#define luaL_setfuncs_compat (   a,
 
)    luaL_register(a,NULL,b)

Enumeration Type Documentation

◆ ap_lua_inherit_t

Enumerator
AP_LUA_INHERIT_UNSET 
AP_LUA_INHERIT_NONE 
AP_LUA_INHERIT_PARENT_FIRST 
AP_LUA_INHERIT_PARENT_LAST 

Function Documentation

◆ ap_lua_hook_lua_open()

int ap_lua_hook_lua_open ( lua_State *  L,
apr_pool_t p 
)

◆ ap_lua_hook_lua_request()

int ap_lua_hook_lua_request ( lua_State *  L,
request_rec r 
)

◆ ap_lua_rstack_dump()

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

◆ ap_lua_ssl_is_https()

int ap_lua_ssl_is_https ( conn_rec c)

◆ ap_lua_ssl_val()

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

Variable Documentation

◆ lua_module

module AP_MODULE_DECLARE_DATA lua_module
extern