mirror of
https://github.com/ksherlock/profuse.git
synced 2024-12-22 20:29:59 +00:00
f6018484ce
git-svn-id: https://profuse.googlecode.com/svn/trunk@17 aa027e90-d47c-11dd-86d7-074df07e0730
41 lines
708 B
C
41 lines
708 B
C
/*
|
|
* UniversalDiskImage.h
|
|
* profuse
|
|
*
|
|
* Created by Kelvin Sherlock on 1/6/09.
|
|
*
|
|
*/
|
|
|
|
#ifndef __UNIVERSAL_DISK_IMAGE_H__
|
|
#define __UNIVERSAL_DISK_IMAGE_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
#define UDI_FORMAT_DOS_ORDER 0
|
|
#define UDI_FORMAT_PRODOS_ORDER 1
|
|
#define UDI_FORMAT_NIBBLIZED 2
|
|
|
|
struct UniversalDiskImage
|
|
{
|
|
bool Load(const uint8_t * buffer);
|
|
|
|
uint32_t magic_word;
|
|
uint32_t creator;
|
|
unsigned header_size;
|
|
unsigned version;
|
|
unsigned image_format;
|
|
uint32_t flags;
|
|
unsigned data_blocks;
|
|
unsigned data_offset;
|
|
unsigned data_size;
|
|
unsigned comment_offset;
|
|
unsigned comment_size;
|
|
unsigned creator_data_offset;
|
|
unsigned creator_data_size;
|
|
};
|
|
|
|
|
|
#endif
|
|
|