scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

isofix.h (982B)


      1 #ifdef __linux__
      2   #define stricmp strcasecmp
      3 #endif
      4 
      5 
      6 typedef enum bool_t { false, true } bool;
      7 
      8 struct opts_s {
      9               bool last_vd;
     10               bool askforimage;
     11               bool extractbootonly;
     12               bool extractheaderonly;
     13               bool macformat;
     14               bool isoformat;
     15               };
     16 
     17 static const char PVD_STRING[8] = { 0x01, 0x43, 0x44, 0x30, 0x30, 0x31, 0x01, 0 }; //"\x01" "CD001" "\x01" "\0";
     18 static const char SVD_STRING[8] = { 0x02, 0x43, 0x44, 0x30, 0x30, 0x31, 0x01, 0 }; //"\x02" "CD001" "\x01" "\0";
     19 static const char VDT_STRING[8] = { 0xff, 0x43, 0x44, 0x30, 0x30, 0x31, 0x01, 0 }; //"\xFF" "CD001" "\x01" "\0";
     20 static const char SYNC_DATA[12] = { 0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0 };
     21 static const char SUB_HEADER[8] = { 0, 0, 0x08, 0, 0, 0, 0x08, 0 };
     22 
     23 int seek_pvd(char *buffer, int sector_size, int mode, FILE *fsource);
     24 int sector_read(char *buffer, int sector_size, int mode, FILE *fsource);
     25