Introduce new types
This commit is contained in:
parent
24c6d18122
commit
9e660e7484
|
@ -6,3 +6,5 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
cdtypes = {path = "../cdtypes"}
|
||||||
|
tool_helper = {path = "../tool_helper"}
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod types;
|
|
@ -0,0 +1,30 @@
|
||||||
|
use cdtypes::types::cdstring::DString;
|
||||||
|
|
||||||
|
pub struct CDDesc {
|
||||||
|
root: Directory
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct PVD {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct Directory {
|
||||||
|
name: DirectoryName,
|
||||||
|
lba: Option<usize>,
|
||||||
|
length: Option<usize>,
|
||||||
|
data: Vec<Data>,
|
||||||
|
dirs: Vec<Directory>
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct Data {
|
||||||
|
name: FileName,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct DirectoryName {
|
||||||
|
name: DString<8>,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct FileName {
|
||||||
|
name: DString<8>,
|
||||||
|
ext: DString<3>
|
||||||
|
}
|
Loading…
Reference in New Issue