use crate::syscalls::{Syscall, SyscallRegistryEntry, caps}; pub(crate) const ENTRIES: &[SyscallRegistryEntry] = &[ SyscallRegistryEntry::builder(Syscall::GfxClear, "gfx2d", "clear") .args(1) .caps(caps::GFX2D) .cost(20), SyscallRegistryEntry::builder(Syscall::GfxFillRect, "gfx2d", "fill_rect") .args(5) .caps(caps::GFX2D) .cost(20), SyscallRegistryEntry::builder(Syscall::GfxDrawLine, "gfx2d", "draw_line") .args(5) .caps(caps::GFX2D) .cost(5), SyscallRegistryEntry::builder(Syscall::GfxDrawCircle, "gfx2d", "draw_circle") .args(4) .caps(caps::GFX2D) .cost(5), SyscallRegistryEntry::builder(Syscall::GfxDrawDisc, "gfx2d", "draw_disc") .args(5) .caps(caps::GFX2D) .cost(5), SyscallRegistryEntry::builder(Syscall::GfxDrawSquare, "gfx2d", "draw_square") .args(6) .caps(caps::GFX2D) .cost(5), SyscallRegistryEntry::builder(Syscall::GfxDrawText, "gfx2d", "draw_text") .args(4) .caps(caps::GFX2D) .cost(20), ];