Module runtime

Module runtime 

Source
Expand description

Exposes the Mun runtime using the C ABI.

Structs§

ExternalFunctionDefinition
Definition of an external function that is callable from Mun.
Runtime
A C-style handle to a runtime.
RuntimeOptions
Options required to construct a [RuntimeHandle] through mun_runtime_create

Functions§

mun_runtime_create
Constructs a new runtime that loads the library at library_path and its dependencies. If successful, the runtime handle is set, otherwise a non-zero error handle is returned.
mun_runtime_destroy
Destructs the runtime corresponding to handle.
mun_runtime_find_function_definition
Retrieves the FunctionDefinition for fn_name from the runtime. If successful, has_fn_info and fn_info are set, otherwise a non-zero error handle is returned.
mun_runtime_get_type_info_by_id
Retrieves the type information corresponding to the specified type_id from the runtime. If successful, has_type_info and type_info are set, otherwise a non-zero error handle is returned.
mun_runtime_get_type_info_by_name
Retrieves the type information corresponding to the specified type_name from the runtime. If successful, has_type_info and type_info are set, otherwise a non-zero error handle is returned.
mun_runtime_update
Updates the runtime corresponding to handle. If successful, updated is set, otherwise a non-zero error handle is returned.