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