1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use core::fmt::Write;
use alloc::string::String;
use alloc::vec::Vec;
use sunrise_libuser::error::Error;
use sunrise_libuser::twili::IPipeProxy;
use sunrise_libuser::sm;
pub static HELP: &str = "connect: Test SM get_service function.";
pub fn main(_stdin: IPipeProxy, mut stdout: IPipeProxy, _stderr: IPipeProxy, _args: Vec<String>) -> Result<(), Error> {
let handle = sm::IUserInterfaceProxy::raw_new().unwrap().get_service(u64::from_le_bytes(*b"vi:\0\0\0\0\0"));
let _ = writeln!(&mut stdout, "Got handle {:?}", handle);
Ok(())
}