Logo Search packages:      
Sourcecode: cbmconvert version File versions  Download package

static struct DiskGeometry* getGeometry ( enum ImageType  type  )  [static, read]

Determine disk image geometry.

type the disk image type
the corresponding geometry, or NULL if none found

Definition at line 247 of file image.c.

References elementsof.

Referenced by allocBlock(), backupBAM(), blocksFree(), CloseImage(), CpmTransTable(), findNextFree(), FormatImage(), freeBlock(), getBlock(), getDirEnt(), isFreeBlock(), mapInode(), OpenImage(), readInode(), restoreBAM(), and WriteImage().

  int i;

  for (i = elementsof(diskGeometry); i--; )
    if (diskGeometry[i].type == type)
      return &diskGeometry[i];

  return 0;

Generated by  Doxygen 1.6.0   Back to index