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