1
- // Generated by `wit-bindgen` 0.29 .0. DO NOT EDIT!
1
+ // Generated by `wit-bindgen` 0.30 .0. DO NOT EDIT!
2
2
// <auto-generated />
3
3
#nullable enable
4
4
11
11
using System . Diagnostics ;
12
12
using System . Diagnostics . CodeAnalysis ;
13
13
14
- namespace WasiHttpWorld . wit . imports . wasi . clocks . v0_2_1
14
+ namespace WasiHttpWorld . wit . imports . wasi . clocks . v0_2_0
15
15
{
16
16
internal static class MonotonicClockInterop {
17
17
18
18
internal static class NowWasmInterop
19
19
{
20
- [ DllImport ( "wasi:clocks/[email protected] .1 " , EntryPoint = "now" ) , WasmImportLinkage ]
20
+ [ DllImport ( "wasi:clocks/[email protected] .0 " , EntryPoint = "now" ) , WasmImportLinkage ]
21
21
internal static extern long wasmImportNow ( ) ;
22
22
23
23
}
@@ -32,7 +32,7 @@ internal static unsafe ulong Now()
32
32
33
33
internal static class ResolutionWasmInterop
34
34
{
35
- [ DllImport ( "wasi:clocks/[email protected] .1 " , EntryPoint = "resolution" ) , WasmImportLinkage ]
35
+ [ DllImport ( "wasi:clocks/[email protected] .0 " , EntryPoint = "resolution" ) , WasmImportLinkage ]
36
36
internal static extern long wasmImportResolution ( ) ;
37
37
38
38
}
@@ -47,31 +47,31 @@ internal static unsafe ulong Resolution()
47
47
48
48
internal static class SubscribeInstantWasmInterop
49
49
{
50
- [ DllImport ( "wasi:clocks/[email protected] .1 " , EntryPoint = "subscribe-instant" ) , WasmImportLinkage ]
50
+ [ DllImport ( "wasi:clocks/[email protected] .0 " , EntryPoint = "subscribe-instant" ) , WasmImportLinkage ]
51
51
internal static extern int wasmImportSubscribeInstant ( long p0 ) ;
52
52
53
53
}
54
54
55
- internal static unsafe global ::WasiHttpWorld . wit . imports . wasi . io . v0_2_1 . IPoll . Pollable SubscribeInstant ( ulong when )
55
+ internal static unsafe global ::WasiHttpWorld . wit . imports . wasi . io . v0_2_0 . IPoll . Pollable SubscribeInstant ( ulong when )
56
56
{
57
57
var result = SubscribeInstantWasmInterop . wasmImportSubscribeInstant ( unchecked ( ( long ) ( when ) ) ) ;
58
- 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 ) ) ;
58
+ 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 ) ) ;
59
59
return resource ;
60
60
61
61
//TODO: free alloc handle (interopString) if exists
62
62
}
63
63
64
64
internal static class SubscribeDurationWasmInterop
65
65
{
66
- [ DllImport ( "wasi:clocks/[email protected] .1 " , EntryPoint = "subscribe-duration" ) , WasmImportLinkage ]
66
+ [ DllImport ( "wasi:clocks/[email protected] .0 " , EntryPoint = "subscribe-duration" ) , WasmImportLinkage ]
67
67
internal static extern int wasmImportSubscribeDuration ( long p0 ) ;
68
68
69
69
}
70
70
71
- internal static unsafe global ::WasiHttpWorld . wit . imports . wasi . io . v0_2_1 . IPoll . Pollable SubscribeDuration ( ulong when )
71
+ internal static unsafe global ::WasiHttpWorld . wit . imports . wasi . io . v0_2_0 . IPoll . Pollable SubscribeDuration ( ulong when )
72
72
{
73
73
var result = SubscribeDurationWasmInterop . wasmImportSubscribeDuration ( unchecked ( ( long ) ( when ) ) ) ;
74
- 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 ) ) ;
74
+ 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 ) ) ;
75
75
return resource ;
76
76
77
77
//TODO: free alloc handle (interopString) if exists
0 commit comments