prepare to start using the modals server for the pddb

This commit is contained in:
bunnie 2021-12-17 03:11:06 +08:00
parent c027b617b6
commit 5d226a002a

View file

@ -369,7 +369,6 @@ use api::*;
mod backend;
use backend::*;
mod ux;
use gam::TextEntryPayload;
use ux::*;
#[cfg(not(any(target_os = "none", target_os = "xous")))]
@ -407,6 +406,8 @@ fn xmain() -> ! {
// shared entropy cache across all process-local services (it's more efficient to request entropy in blocks from the TRNG)
let entropy = Rc::new(RefCell::new(TrngPool::new()));
// for less-secured user prompts (everything but password entry)
let modals = modals::Modals::new(&xns).expect("can't connect to Modals server");
// OS-specific PDDB driver
let mut pddb_os = PddbOs::new(Rc::clone(&entropy));