cbmimage
Loading...
Searching...
No Matches
CMD D1M/D2M/D4M specific functions

Functions

static int cbmimage_i_d1m_d2m_d4m_chdir (cbmimage_image_settings *settings, cbmimage_dir_entry *dir_entry)
 
static int cbmimage_i_d1m_d2m_d4m_get_geos_infoblock (cbmimage_image_settings *settings)
 
void cbmimage_i_d1m_d2m_d4m_image_create (cbmimage_fileimage *image, cbmimage_imagetype imagetype, unsigned char *imagetype_name, uint8_t maxsectors)
 
void cbmimage_i_d1m_image_open (cbmimage_fileimage *image)
 
void cbmimage_i_d2m_image_open (cbmimage_fileimage *image)
 
void cbmimage_i_d4m_image_open (cbmimage_fileimage *image)
 

Variables

static const cbmimage_fileimage_functions d1m_d2m_d4m_fileimage_functions
 

Detailed Description

Function Documentation

◆ cbmimage_i_d1m_d2m_d4m_chdir()

static int cbmimage_i_d1m_d2m_d4m_chdir ( cbmimage_image_settings * settings,
cbmimage_dir_entry * dir_entry )
static

function for chdir'ing in a D1M, D2M or D4M image

Parameters
[in]settingspointer to the image data internal settings
[in]dir_entrypointer to the dir_entry to which to chdir.
Returns
  • 0 if no error occurred
  • != 0 if an error occurred
Remarks
  • This function tests if the directory entry is actually a directory to which it can change. If it is not valid, it should return with an error value != 0. In this case, the chdir is aborted and returns with an error, too.

◆ cbmimage_i_d1m_d2m_d4m_get_geos_infoblock()

static int cbmimage_i_d1m_d2m_d4m_get_geos_infoblock ( cbmimage_image_settings * settings)
static

get the GEOS info block of this image has one

Parameters
[in]settingspointer to the image data internal settings
Returns
  • 0 if this is a non-GEOS image
  • != 0 if this is a GEOS image

◆ cbmimage_i_d1m_d2m_d4m_image_create()

void cbmimage_i_d1m_d2m_d4m_image_create ( cbmimage_fileimage * image,
cbmimage_imagetype imagetype,
unsigned char * imagetype_name,
uint8_t maxsectors )

create structures for a D1M, D2M and D4M image

Parameters
[in]imagepointer to the image data
[in]imagetypeThe type of image that should be created
[in]imagetype_nameThe name of the image type that should be stored in the images.
This value is only informational and can be asked for by the user; it is not used internally.
[in]maxsectorsThe number of sectors of this image
Todo
IMPLEMENT
Bug
NOT IMPLEMENTED YET

◆ cbmimage_i_d1m_image_open()

void cbmimage_i_d1m_image_open ( cbmimage_fileimage * image)

create structures for a D1M image

Parameters
[in]imagepointer to the image data

◆ cbmimage_i_d2m_image_open()

void cbmimage_i_d2m_image_open ( cbmimage_fileimage * image)

create structures for a D2M image

Parameters
[in]imagepointer to the image data

◆ cbmimage_i_d4m_image_open()

void cbmimage_i_d4m_image_open ( cbmimage_fileimage * image)

create structures for a D4M image

Parameters
[in]imagepointer to the image data

Variable Documentation

◆ d1m_d2m_d4m_fileimage_functions

const cbmimage_fileimage_functions d1m_d2m_d4m_fileimage_functions
static
Initial value:
= {
}
static int cbmimage_i_d1m_d2m_d4m_chdir(cbmimage_image_settings *settings, cbmimage_dir_entry *dir_entry)
Definition d1m_d2m_d4m.c:94
static int cbmimage_i_d1m_d2m_d4m_set_bam(cbmimage_image_settings *settings)
occupy the blocks for the partition table of a CMD disk
Definition d1m_d2m_d4m.c:31

template for the file image functions for D1M, D2M and D4M images

This is a template that is copied into the image specific data.