usbloadergx/source/partition.h
dimok321 a97cfd3431 *Fixed Estimation GameSize before Install BUG
*Some small fixes and MP3 Crash fix (STILL BUGGY WHILE PLAYING, DON'T USE IT)
2009-05-13 20:55:33 +00:00

41 lines
532 B
C

#ifndef _PARTITION_H_
#define _PARTITION_H_
#ifdef __cplusplus
extern "C"
{
#endif
/* 'partition entry' structure */
typedef struct {
/* Boot indicator */
u8 boot;
/* Starting CHS */
u8 start[3];
/* Partition type */
u8 type;
/* Ending CHS */
u8 end[3];
/* Partition sector */
u32 sector;
/* Partition size */
u32 size;
} ATTRIBUTE_PACKED partitionEntry;
/* Constants */
#define MAX_PARTITIONS 4
/* Prototypes */
s32 Partition_GetEntries(partitionEntry *, u32 *);
#ifdef __cplusplus
}
#endif
#endif