xous-core/services/xous-names/src/lib.rs

19 lines
482 B
Rust
Raw Normal View History

2021-01-04 15:34:36 +00:00
#![cfg_attr(target_os = "none", no_std)]
pub mod api;
/*
Calls are made using the xous::ipc::Sendable IPC wrapper, for example:
use xous::ipc::*;
let mut registration = Registration::new();
let mut sendable_registration = Sendable::new(registration)
.expect("can't create sendable registration structure");
2021-01-05 08:53:19 +00:00
write!(sendable_registration.name, "I'm a server, call me Fred!");
sendable_registration.lend_mut(ns_conn, sendable_registration.mid());
*/