wasmtime_component_linker_root function

  1. @Native<Pointer<wasmtime_component_linker_instance_t> Function(Pointer<wasmtime_component_linker_t> linker)>(ffi.Pointer<wasmtime_component_linker_t>)>()
Pointer<wasmtime_component_linker_instance_t> wasmtime_component_linker_root(
  1. Pointer<wasmtime_component_linker_t> linker
)

\brief Returns the "root instance" of this linker, used to define names into the root namespace.

\warning This acquires exclusive access to the \p linker. The \p linker MUST not be accessed by anything until the returned #wasmtime_component_linker_instance_t in \p linker_instance_out is destroyed by #wasmtime_component_linker_instance_delete.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_component_linker_instance_t> Function(
    ffi.Pointer<wasmtime_component_linker_t>,
  )
>()
external ffi.Pointer<wasmtime_component_linker_instance_t>
wasmtime_component_linker_root(ffi.Pointer<wasmtime_component_linker_t> linker);