Add PathTables to Layout
This commit is contained in:
parent
a2d628d190
commit
ee2c2d8ebd
|
@ -36,6 +36,7 @@ fn run_main() -> Result<(), Error> {
|
|||
match element {
|
||||
Layout::SystemArea(_) => println!("SystemArea:"),
|
||||
Layout::PVD(_) => println!("PVD:"),
|
||||
Layout::PathTables => println!("PathTables:"),
|
||||
Layout::Directory{name, properties} => println!("Dir: {} @{}-{}", name, properties.lba, properties.overwrite_size_bytes.unwrap_or(0)),
|
||||
Layout::File(file) => println!("File: {} @{}-{}", file, file.properties.lba, file.properties.overwrite_size_bytes.unwrap_or(0)),
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ macro_rules! declare_memory_layout {
|
|||
|
||||
layout.push([< Layout$($val:camel),* >]::SystemArea(&$($val),* parent.system_area));
|
||||
layout.push([< Layout$($val:camel),* >]::PVD(&$($val),* parent.pvd));
|
||||
layout.push(([< Layout$($val:camel),* >]::PathTables));
|
||||
|
||||
[< add_dir_and_subdir $(_$val),* >](&mut layout, &$($val),* parent.root);
|
||||
layout
|
||||
|
@ -29,6 +30,7 @@ macro_rules! declare_memory_layout {
|
|||
pub enum [< Layout$($val:camel),* >]<'a> {
|
||||
SystemArea(&'a $($val),* SystemArea),
|
||||
PVD(&'a $($val),* PrimaryVolumeDescriptor),
|
||||
PathTables,
|
||||
Directory{name: &'a $($val),* DirectoryName, properties: &'a $($val),* Properties},
|
||||
File(&'a $($val),* File)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue