wiwi/
filetypes.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![allow(
	dead_code,
	reason = "wip"
)]

use crate::prelude::*;
use std::path::Path;

pub struct FileInfo<'h> {
	// TODO: change to our own path type when I get that written maybe?
	filename: Option<&'h Path>,
	// TODO: change to our own path type when I get that written maybe?
	filepath: Option<&'h Path>,
	blob: Option<&'h [u8]>,

	// options
	parse_mode: Option<ParseMode>
}

enum ParseMode {
	MagicNumberOnly,
	FullFile
}