asset addressable PBS surface

This commit is contained in:
2026-03-27 19:41:07 +00:00
parent b75b2a5825
commit 7c9f7b58db
22 changed files with 904 additions and 484 deletions
@@ -16,3 +16,21 @@ declare host LowAssets {
[Capability(name = "asset")]
fn cancel(loading_handle: int) -> int;
}
declare service Assets {
fn load(addressable: Addressable, slot: int) -> (status: int, loading_handle: int) {
return LowAssets.load(addressable, slot);
}
fn status(loading_handle: int) -> int {
return LowAssets.status(loading_handle);
}
fn commit(loading_handle: int) -> int {
return LowAssets.commit(loading_handle);
}
fn cancel(loading_handle: int) -> int {
return LowAssets.cancel(loading_handle);
}
}
@@ -1 +1,2 @@
pub host LowAssets;
mod host LowAssets;
pub service Assets;