akern-gkgoat-fork/kernel/src/interp/objects.rs

12 lines
229 B
Rust
Raw Normal View History

2023-04-12 18:08:07 +00:00
use alloc::vec;
use alloc::vec::Vec;
use spin::{Lazy, Mutex};
pub type HostObjects = Vec<Option<xml::XMLElement>>;
pub const OBJECTS: Lazy<Mutex<HostObjects>> = Lazy::new(|| {
let mut obj = vec![];
Mutex::new(obj)
});