Skip to main content

WasmEdge_ModuleInstanceInitWasmEdgeProcess

Function WasmEdge_ModuleInstanceInitWasmEdgeProcess 

Source
pub unsafe extern "C" fn WasmEdge_ModuleInstanceInitWasmEdgeProcess(
    AllowedCmds: *const *const c_char,
    CmdsLen: u32,
    AllowAll: bool,
)
Expand description

Initialize the WasmEdge_ModuleInstanceContext for the wasmedge_process specification.

This function will initialize the wasmedge_process host module with the parameters.

\param AllowedCmds the allowed command list. NULL if the length is 0. \param CmdsLen the length of the allowed command list. \param AllowAll the boolean value to allow all commands. false is recommended. If this value is true, the allowed command list will not be recorded and all commands can be executed by wasmedge_process.