Introduce new types
This commit is contained in:
parent
f077baf2f9
commit
5cce2f370e
|
@ -6,3 +6,5 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[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