Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
BaLua_param Struct Reference

Detailed Description

Startup and runtime parameters for a BAS Lua VM.

For param zipBinPwd and zipBinPwdLen, use binpwd2str for generating the password C code. See Signed and Encrypted ZIP files for details.

#include <balua.h>

Public Attributes

lua_State * L
 Input NULL in server builds; existing state in NO_BA_SERVER. More...
 
HttpServer * server
 Borrowed server, or NULL when server bindings are not needed. More...
 
struct BaTimer * timer
 Timer bindings activated if not NULL. More...
 
IoIntf * vmio
 Required VM I/O interface used for Lua resources. More...
 
ThreadMutex * mutex
 Derived from server in normal builds; supplied directly in NO_BA_SERVER. More...
 
struct LoginTracker * tracker
 Optional login tracker. More...
 
int errHndRef
 Initialize to zero; internal ba.seterrh reference. More...
 
const U8 * zipPubKey
 Borrowed SharkSSL ECC public key, or NULL to disable ZIP signature checks. More...
 
const U8 * zipBinPwd
 Borrowed password bytes, or NULL for no default ZIP password. More...
 
U16 zipBinPwdLen
 Password byte count, matching zipBinPwd. More...
 
BaBool pwdRequired
 Nonzero requires encryption on all files in ZIP I/O using this policy. More...
 

Member Data Documentation

◆ errHndRef

int BaLua_param::errHndRef

Initialize to zero; internal ba.seterrh reference.

◆ L

lua_State* BaLua_param::L

Input NULL in server builds; existing state in NO_BA_SERVER.

Internal copy stores the active state.

◆ mutex

ThreadMutex* BaLua_param::mutex

Derived from server in normal builds; supplied directly in NO_BA_SERVER.

◆ pwdRequired

BaBool BaLua_param::pwdRequired

Nonzero requires encryption on all files in ZIP I/O using this policy.

◆ server

HttpServer* BaLua_param::server

Borrowed server, or NULL when server bindings are not needed.

◆ timer

struct BaTimer* BaLua_param::timer

Timer bindings activated if not NULL.

◆ tracker

struct LoginTracker* BaLua_param::tracker

Optional login tracker.

◆ vmio

IoIntf* BaLua_param::vmio

Required VM I/O interface used for Lua resources.

◆ zipBinPwd

const U8* BaLua_param::zipBinPwd

Borrowed password bytes, or NULL for no default ZIP password.

◆ zipBinPwdLen

U16 BaLua_param::zipBinPwdLen

Password byte count, matching zipBinPwd.

◆ zipPubKey

const U8* BaLua_param::zipPubKey

Borrowed SharkSSL ECC public key, or NULL to disable ZIP signature checks.