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