1 /* 2 ** hybrid.h: extra info needed by libhfs and mkisofs 3 ** 4 ** James Pearson 15/9/97 5 */ 6 7 #ifndef _HYBRID_H 8 9 #define CTC 2 /* factor to increase initial Catalog file 10 size to prevent the file growing */ 11 #define CTC_LOOP 4 /* number of attemps before we give up 12 trying to create the volume */ 13 14 #define HCE_ERROR -9999 /* dummy errno value for Catalog file 15 size problems */ 16 17 #define HFS_MAP_SIZE 16 /* size of HFS partition maps (8Kb) */ 18 19 typedef struct { 20 int hfs_ce_size; /* extents/catalog size in HFS blks */ 21 int hfs_hdr_size; /* vol header size in HFS blks */ 22 int hfs_dt_size; /* Desktop file size in HFS blks */ 23 int hfs_tot_size; /* extents/catalog/dt size in HFS blks */ 24 int hfs_map_size; /* size of partition maps in HFS blks */ 25 int hfs_vol_size; /* size of volume in bytes */ 26 unsigned char *hfs_ce; /* mem copy of extents/catalog files */ 27 unsigned char *hfs_hdr; /* mem copy of vol header */ 28 unsigned char *hfs_alt_mdb; /* location of alternate MDB */ 29 unsigned char *hfs_map; /* location of partiton_maps */ 30 int Csize; /* size of allocation unit */ 31 int XTCsize; /* default size of catalog/extents files */ 32 int ctc_size; /* factor to increase Catalog file size */ 33 char *error; /* HFS error message */ 34 } hce_mem; 35 36 #define ERROR_SIZE 1024 37 38 #define _HYBRID_H 39 #endif /* _HYBRID_H */ 40