cbmimage
Loading...
Searching...
No Matches
cbmimage_dir_entry_s Struct Reference

A directory entry. More...

#include <cbmimage.h>

Collaboration diagram for cbmimage_dir_entry_s:

Public Attributes

cbmimage_dir_header_name name
 the name of the image with some extra info
 
cbmimage_dir_type type
 type of this directory entry (DEL, SRQ, PRG, USR, REL, ...)
 
unsigned int is_locked: 1
 
unsigned int is_closed: 1
 
unsigned int has_datetime: 1
 if set to 1, this file has valid year, month, day, hour and minute entries
 
unsigned int is_geos: 1
 if set to 1, this is a GEOS file
 
unsigned int geos_is_vlir: 1
 if is_geos and this is set to 1, this is a GEOS VLIR file
 
unsigned int is_valid: 1
 if the directory entry is valid, this is 1
 
cbmimage_blockaddress start_block
 
cbmimage_blockaddress rel_sidesector_block
 
uint16_t rel_recordlength
 if type is DIR_TYPE_REL, this is the record length of the REL file
 
uint16_t block_count
 the count of occupied blocks on disk
 
uint16_t year
 if has_datetime is 1, the year of the file creation or last modification.
 
uint8_t month
 if has_datetime is 1, the month of the file creation or last modification.
 
uint8_t day
 if has_datetime is 1, the day of the file creation or last modification.
 
uint8_t hour
 if has_datetime is 1, the hour of the file creation or last modification.
 
uint8_t minute
 if has_datetime is 1, the minute of the file creation or last modification.
 
cbmimage_blockaddress geos_infoblock
 if is_geos is 1, this contains a pointer to the GEOS infoblock
 
cbmimage_geos_filetype geos_filetype
 if is_geos is 1, this is the GEOS filtype
 

Detailed Description

A directory entry.

The functions that enumerate directory entrys all operate on this entry type.

see also: cbmimage_dir_get_first, cbmimage_dir_get_next, cbmimage_dir_get_close, cbmimage_dir_is_deleted

Member Data Documentation

◆ is_closed

unsigned int cbmimage_dir_entry_s::is_closed

if set to 1 (normal), this file is closed correctly. If set to 0, the file is not (yet?) closed. The CBM DOS shows such files with a "*" (i.e., "*PRG")

◆ is_locked

unsigned int cbmimage_dir_entry_s::is_locked

if set to 1, this file is locked. That is, it cannot be changed or deleted. The CBM DOS shows such files with a "<" (i.e., "PRG<")

◆ rel_sidesector_block

cbmimage_blockaddress cbmimage_dir_entry_s::rel_sidesector_block

if type is DIR_TYPE_REL, this points to the first sidesektor block on the disk. Note that in case of 1581 and other drives, this is a SUPER SIDE SECTOR BLOCK

◆ start_block

cbmimage_blockaddress cbmimage_dir_entry_s::start_block

the start of the file on the disk. Note that for GEOS VLIR files (is_geos_vlir is set to 1), this contains the record map, which itself points to the real starts of the streams


The documentation for this struct was generated from the following file: