using System;
using System.Collections.Generic;
using Wasmtime.Bindings;
namespace Wasmtime
{
///
/// The interface implemented by Wasmtime hosts.
///
public interface IHost
{
///
/// The that the host is bound to.
///
/// A host can only bind to one module instance at a time.
Instance Instance { get; set; }
///
/// Gets the import bindings of the host given a WebAssembly module.
///
/// The WebAssembly module to get the import bindings for.
/// Returns the list of import bindings for the host.
List GetImportBindings(Module module) => Binding.GetImportBindings(this, module);
}
}