Apache2
lua_vmprep.h File Reference
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "httpd.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_pools.h"
#include "apr_reslist.h"
Include dependency graph for lua_vmprep.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_vm_spec
 
struct  ap_lua_mapped_handler_spec
 
struct  ap_lua_filter_handler_spec
 
struct  ap_lua_finfo
 
struct  ap_lua_server_spec
 

Macros

#define AP_LUA_SCOPE_UNSET   0
 
#define AP_LUA_SCOPE_ONCE   1
 
#define AP_LUA_SCOPE_REQUEST   2
 
#define AP_LUA_SCOPE_CONN   3
 
#define AP_LUA_SCOPE_THREAD   4
 
#define AP_LUA_SCOPE_SERVER   5
 
#define AP_LUA_CACHE_UNSET   0
 
#define AP_LUA_CACHE_NEVER   1
 
#define AP_LUA_CACHE_STAT   2
 
#define AP_LUA_CACHE_FOREVER   3
 
#define AP_LUA_FILTER_INPUT   1
 
#define AP_LUA_FILTER_OUTPUT   2
 

Typedefs

typedef void(* ap_lua_state_open_callback) (lua_State *L, apr_pool_t *p, void *ctx)
 

Functions

void ap_lua_load_apache2_lmodule (lua_State *L)
 
lua_State * ap_lua_get_lua_state (apr_pool_t *lifecycle_pool, ap_lua_vm_spec *spec, request_rec *r)
 
void ap_lua_init_mutex (apr_pool_t *pool, server_rec *s)
 

Macro Definition Documentation

◆ AP_LUA_CACHE_FOREVER

#define AP_LUA_CACHE_FOREVER   3

◆ AP_LUA_CACHE_NEVER

#define AP_LUA_CACHE_NEVER   1

◆ AP_LUA_CACHE_STAT

#define AP_LUA_CACHE_STAT   2

◆ AP_LUA_CACHE_UNSET

#define AP_LUA_CACHE_UNSET   0

◆ AP_LUA_FILTER_INPUT

#define AP_LUA_FILTER_INPUT   1

◆ AP_LUA_FILTER_OUTPUT

#define AP_LUA_FILTER_OUTPUT   2

◆ AP_LUA_SCOPE_CONN

#define AP_LUA_SCOPE_CONN   3

◆ AP_LUA_SCOPE_ONCE

#define AP_LUA_SCOPE_ONCE   1

◆ AP_LUA_SCOPE_REQUEST

#define AP_LUA_SCOPE_REQUEST   2

◆ AP_LUA_SCOPE_SERVER

#define AP_LUA_SCOPE_SERVER   5

◆ AP_LUA_SCOPE_THREAD

#define AP_LUA_SCOPE_THREAD   4

◆ AP_LUA_SCOPE_UNSET

#define AP_LUA_SCOPE_UNSET   0

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.

Typedef Documentation

◆ ap_lua_state_open_callback

typedef void(* ap_lua_state_open_callback) (lua_State *L, apr_pool_t *p, void *ctx)

Function Documentation

◆ ap_lua_get_lua_state()

lua_State* ap_lua_get_lua_state ( apr_pool_t lifecycle_pool,
ap_lua_vm_spec spec,
request_rec r 
)

◆ ap_lua_init_mutex()

void ap_lua_init_mutex ( apr_pool_t pool,
server_rec s 
)

◆ ap_lua_load_apache2_lmodule()

void ap_lua_load_apache2_lmodule ( lua_State *  L)

Fake out addition of the "apache2" module