Introduce new types

This commit is contained in:
Jaby 2022-10-06 20:30:56 +02:00 committed by Jaby
parent f077baf2f9
commit 5cce2f370e
3 changed files with 33 additions and 0 deletions

View File

@ -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"}

View File

@ -0,0 +1 @@
pub mod types;

View File

@ -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>
}