This commit implements an initial WASI C API that can be used to instantiate and configure a WASI instance from C. This also implements a `WasiBuilder` for the C# API enabling .NET hosts to bind to Wasmtime's WASI implementation.
19 lines
473 B
C#
19 lines
473 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Wasmtime.Bindings;
|
|
|
|
namespace Wasmtime
|
|
{
|
|
/// <summary>
|
|
/// The interface implemented by Wasmtime hosts.
|
|
/// </summary>
|
|
public interface IHost
|
|
{
|
|
/// <summary>
|
|
/// The <see cref="Wasmtime.Instance" /> that the host is bound to.
|
|
/// </summary>
|
|
/// <remarks>A host can only bind to one module instance at a time.</remarks>
|
|
Instance Instance { get; set; }
|
|
}
|
|
}
|