bunkerweb/src/api/ngx_stream_lua_api.h
Théophile Diot e36d18ca47 Squashed 'src/deps/src/stream-lua-nginx-module/' changes from bea8a0c0de..982ce52831
982ce52831 bumped stream-lua-nginx-module to 15.
9b4c301d2c tests: updated ci for stream >= 1.25.5.
ebcf8617e1 travis: bumped the NGINX core to 1.27.0.
5954e22fa1 bugfix: fixed keepalive error in cosocket.
f56c53bc63 bugfix: treat shdict entries with ttl equal to 0 as expired.
97937e20b8 feature: add ssl trusted certificate.
e974e57a4b dev: util/build.sh: fixed command line argument validation and environment variable usage.
65014a8216 feature: support lua balancer set proxy bind dynamic

git-subtree-dir: src/deps/src/stream-lua-nginx-module
git-subtree-split: 982ce5283172fd5ac5cba21bfc55b579568a0994
2024-08-08 18:58:21 +01:00

72 lines
1.4 KiB
C

/*
* !!! DO NOT EDIT DIRECTLY !!!
* This file was automatically generated from the following template:
*
* src/subsys/api/ngx_subsys_lua_api.h.tt2
*/
/*
* Copyright (C) Yichun Zhang (agentzh)
*/
#ifndef _NGX_STREAM_LUA_API_H_INCLUDED_
#define _NGX_STREAM_LUA_API_H_INCLUDED_
#include <nginx.h>
#include <ngx_core.h>
#include <lua.h>
#include <stdint.h>
/* Public API for other Nginx modules */
#define ngx_stream_lua_version 15
typedef struct {
uint8_t type;
union {
int b; /* boolean */
lua_Number n; /* number */
ngx_str_t s; /* string */
} value;
} ngx_stream_lua_value_t;
typedef struct {
int len;
/* this padding hole on 64-bit systems is expected */
u_char *data;
} ngx_stream_lua_ffi_str_t;
lua_State *ngx_stream_lua_get_global_state(ngx_conf_t *cf);
ngx_int_t ngx_stream_lua_add_package_preload(ngx_conf_t *cf,
const char *package, lua_CFunction func);
ngx_int_t ngx_stream_lua_shared_dict_get(ngx_shm_zone_t *shm_zone,
u_char *key_data, size_t key_len, ngx_stream_lua_value_t *value);
ngx_shm_zone_t *ngx_stream_lua_find_zone(u_char *name_data,
size_t name_len);
ngx_shm_zone_t *ngx_stream_lua_shared_memory_add(ngx_conf_t *cf,
ngx_str_t *name, size_t size, void *tag);
#endif /* _NGX_STREAM_LUA_API_H_INCLUDED_ */
/* vi:set ft=c ts=4 sw=4 et fdm=marker: */