Skip to main content

MatiOS_SDK/syscalls/debug/
print_v1.rs

1use crate::syscalls::SyscallRequest;
2use crate::uuid::Uuid;
3use alloc::boxed::Box;
4use alloc::string::String;
5
6pub struct PrintV1 {
7
8 pub text:String
9}
10 impl PrintV1 {
11    pub fn create(text: String) -> Box<SyscallRequest<Self>> {
12        Box::new(SyscallRequest {
13            size: size_of:: <Self>(),
14            uuid: crate::uuid::Uuid::parse_str("7b16bee9-d0b8-4bd5-86d7-8225840ce006").unwrap(),
15            payload: Self{text}
16        })
17    }
18}