pub unsafe extern "C" fn WasmEdge_VMGetFunctionList(
    Cxt: *const WasmEdge_VMContext,
    Names: *mut WasmEdge_String,
    FuncTypes: *mut *const WasmEdge_FunctionTypeContext,
    Len: u32
) -> u32
Expand description

Get the exported function list.

The returned function names filled into the Names array link to the exported names of functions owned by the vm context, and the caller should NOT call the WasmEdge_StringDelete to destroy them. The function type contexts filled into the FuncTypes array of the corresponding function names link to the context owned by the VM context. The caller should NOT call the WasmEdge_FunctionTypeDelete to destroy them. If the Names and FuncTypes buffer lengths are smaller than the result of the exported function list size, the overflowed return values will be discarded.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext. \param [out] Names the output names WasmEdge_String buffer of exported functions. Can be NULL if names are not needed. \param [out] FuncTypes the function type contexts buffer. Can be NULL if function types are not needed. \param Len the buffer length.

\returns actual exported function list size.