Make the RFC 1740 entry-ID registry public API
Consumers address entries by ID; the registry is the vocabulary. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
34
src/lib.rs
34
src/lib.rs
@@ -39,21 +39,25 @@ pub const AD_MAGIC: u32 = 0x0005_1607;
|
||||
pub const AD_VERSION: u32 = 0x0002_0000;
|
||||
const ATTR_MAGIC: u32 = 0x4154_5452; // "ATTR"
|
||||
|
||||
const ENTRY_DATA_FORK: u32 = 1;
|
||||
const ENTRY_RESOURCE_FORK: u32 = 2;
|
||||
const ENTRY_REAL_NAME: u32 = 3;
|
||||
const ENTRY_COMMENT: u32 = 4;
|
||||
const ENTRY_ICON_BW: u32 = 5;
|
||||
const ENTRY_ICON_COLOR: u32 = 6;
|
||||
const ENTRY_FILE_INFO: u32 = 7; // deprecated in favor of ENTRY_FILE_DATES + ENTRY_MAC_FILE_INFO
|
||||
const ENTRY_FILE_DATES: u32 = 8;
|
||||
const ENTRY_FINDER_INFO: u32 = 9;
|
||||
const ENTRY_MAC_FILE_INFO: u32 = 10;
|
||||
const ENTRY_PRODOS_FILE_INFO: u32 = 11; // deprecated
|
||||
const ENTRY_MSDOS_FILE_INFO: u32 = 12; // deprecated
|
||||
const ENTRY_AFP_SHORT_NAME: u32 = 13; // deprecated in favor of ENTRY_REAL_NAME
|
||||
const ENTRY_AFP_FILE_INFO: u32 = 14; // deprecated
|
||||
const ENTRY_AFP_DIRECTORY_ID: u32 = 15; // deprecated
|
||||
// The RFC 1740 entry-ID registry, public: consumers building or picking
|
||||
// apart containers address entries by these (fsinspect requests forks and
|
||||
// Finder info; adx names whatever it meets). Deprecated IDs stay listed —
|
||||
// a codec that meets one on disk should know what it is looking at.
|
||||
pub const ENTRY_DATA_FORK: u32 = 1;
|
||||
pub const ENTRY_RESOURCE_FORK: u32 = 2;
|
||||
pub const ENTRY_REAL_NAME: u32 = 3;
|
||||
pub const ENTRY_COMMENT: u32 = 4;
|
||||
pub const ENTRY_ICON_BW: u32 = 5;
|
||||
pub const ENTRY_ICON_COLOR: u32 = 6;
|
||||
pub const ENTRY_FILE_INFO: u32 = 7; // deprecated in favor of ENTRY_FILE_DATES + ENTRY_MAC_FILE_INFO
|
||||
pub const ENTRY_FILE_DATES: u32 = 8;
|
||||
pub const ENTRY_FINDER_INFO: u32 = 9;
|
||||
pub const ENTRY_MAC_FILE_INFO: u32 = 10;
|
||||
pub const ENTRY_PRODOS_FILE_INFO: u32 = 11; // deprecated
|
||||
pub const ENTRY_MSDOS_FILE_INFO: u32 = 12; // deprecated
|
||||
pub const ENTRY_AFP_SHORT_NAME: u32 = 13; // deprecated in favor of ENTRY_REAL_NAME
|
||||
pub const ENTRY_AFP_FILE_INFO: u32 = 14; // deprecated
|
||||
pub const ENTRY_AFP_DIRECTORY_ID: u32 = 15; // deprecated
|
||||
|
||||
/// Seconds between the Unix epoch and the Mac (2000-01-01 00:00 UTC) epoch.
|
||||
const MAC_EPOCH_OFFSET: u64 = 946_684_800;
|
||||
|
||||
Reference in New Issue
Block a user