wiwi/
filetypes.rs

1#![allow(
2	dead_code,
3	reason = "wip"
4)]
5
6use crate::prelude::*;
7use std::path::Path;
8
9pub struct FileInfo<'h> {
10	// TODO: change to our own path type when I get that written maybe?
11	filename: Option<&'h Path>,
12	// TODO: change to our own path type when I get that written maybe?
13	filepath: Option<&'h Path>,
14	blob: Option<&'h [u8]>,
15
16	// options
17	parse_mode: Option<ParseMode>
18}
19
20enum ParseMode {
21	MagicNumberOnly,
22	FullFile
23}