components/
process_printer.rsuse core::mem::MaybeUninit;
use kernel::component::Component;
#[macro_export]
macro_rules! process_printer_text_component_static {
() => {{
kernel::static_buf!(capsules_system::process_printer::ProcessPrinterText)
};};
}
pub struct ProcessPrinterTextComponent {}
impl ProcessPrinterTextComponent {
pub fn new() -> ProcessPrinterTextComponent {
ProcessPrinterTextComponent {}
}
}
impl Component for ProcessPrinterTextComponent {
type StaticInput =
&'static mut MaybeUninit<capsules_system::process_printer::ProcessPrinterText>;
type Output = &'static capsules_system::process_printer::ProcessPrinterText;
fn finalize(self, static_buffer: Self::StaticInput) -> Self::Output {
static_buffer.write(capsules_system::process_printer::ProcessPrinterText::new())
}
}