Added extra flags to dcb-iso-9660's entry flags.

This commit is contained in:
Filipe Rodrigues 2021-01-23 03:14:14 +00:00
parent dd26994182
commit 519f7f1845

View File

@ -35,8 +35,12 @@ pub struct Entry {
bitflags::bitflags! {
struct Flags: u8 {
const HIDDEN = 0b0000_0001;
const DIR = 0b0000_0010;
const HIDDEN = 0b0000_0001;
const DIR = 0b0000_0010;
const ASSOCIATED = 0b0000_0100;
const RECORD = 0b0000_1000;
const PROTECTED = 0b0001_0000;
const FINAL = 0b1000_0000;
}
}
@ -54,6 +58,7 @@ impl Entry {
}
/// Finds an entry in a list of entries
// TODO: DEPRECATE
#[must_use]
pub fn search_entries<'a>(entries: &'a [Self], name: &str) -> Option<&'a Self> {
for entry in entries {