forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WASI] ownsPollable parameter to RegisterWasiPollable, downgrade depe…
…ndencies (dotnet#107978)
- Loading branch information
1 parent
9eb48cd
commit 59a096e
Showing
30 changed files
with
724 additions
and
799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Generated by `wit-bindgen` 0.30.0. DO NOT EDIT! | ||
// Generated by `wit-bindgen` 0.32.0. DO NOT EDIT! | ||
// <auto-generated /> | ||
#nullable enable | ||
|
||
|
@@ -11,13 +11,13 @@ | |
using System.Diagnostics; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace WasiHttpWorld.wit.imports.wasi.clocks.v0_2_1 | ||
namespace WasiHttpWorld.wit.imports.wasi.clocks.v0_2_0 | ||
{ | ||
internal static class MonotonicClockInterop { | ||
|
||
internal static class NowWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "now"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "now"), WasmImportLinkage] | ||
internal static extern long wasmImportNow(); | ||
|
||
} | ||
|
@@ -32,7 +32,7 @@ internal static unsafe ulong Now() | |
|
||
internal static class ResolutionWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "resolution"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "resolution"), WasmImportLinkage] | ||
internal static extern long wasmImportResolution(); | ||
|
||
} | ||
|
@@ -47,31 +47,31 @@ internal static unsafe ulong Resolution() | |
|
||
internal static class SubscribeInstantWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "subscribe-instant"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "subscribe-instant"), WasmImportLinkage] | ||
internal static extern int wasmImportSubscribeInstant(long p0); | ||
|
||
} | ||
|
||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable SubscribeInstant(ulong when) | ||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable SubscribeInstant(ulong when) | ||
{ | ||
var result = SubscribeInstantWasmInterop.wasmImportSubscribeInstant(unchecked((long)(when))); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable.THandle(result)); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable.THandle(result)); | ||
return resource; | ||
|
||
//TODO: free alloc handle (interopString) if exists | ||
} | ||
|
||
internal static class SubscribeDurationWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "subscribe-duration"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "subscribe-duration"), WasmImportLinkage] | ||
internal static extern int wasmImportSubscribeDuration(long p0); | ||
|
||
} | ||
|
||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable SubscribeDuration(ulong when) | ||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable SubscribeDuration(ulong when) | ||
{ | ||
var result = SubscribeDurationWasmInterop.wasmImportSubscribeDuration(unchecked((long)(when))); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable.THandle(result)); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable.THandle(result)); | ||
return resource; | ||
|
||
//TODO: free alloc handle (interopString) if exists | ||
|
Oops, something went wrong.