| 1 | 
 #ifndef _CDVDHDL_H_ | 
 
 
 
 
 
 | 2 | 
 #define _CDVDHDL_H_ | 
 
 
 
 
 
 | 3 | 
  | 
 
 
 
 
 
 | 4 | 
 #define HDL_GAME_NAME_MAX  64 | 
 
 
 
 
 
 | 5 | 
  | 
 
 
 
 
 
 | 6 | 
 typedef struct hdl_game_info_type | 
 
 
 
 
 
 | 7 | 
 { | 
 
 
 
 
 
 | 8 | 
   char partition_name [PS2_PART_IDMAX + 1]; | 
 
 
 
 
 
 | 9 | 
   char name [HDL_GAME_NAME_MAX + 1]; | 
 
 
 
 
 
 | 10 | 
   char startup [8 + 1 + 3 + 1]; | 
 
 
 
 
 
 | 11 | 
   u_char compat_flags; | 
 
 
 
 
 
 | 12 | 
   int is_dvd; | 
 
 
 
 
 
 | 13 | 
   u_long start_sector; | 
 
 
 
 
 
 | 14 | 
   u_long total_size_in_kb; | 
 
 
 
 
 
 | 15 | 
 } hdl_game_info_t; | 
 
 
 
 
 
 | 16 | 
  | 
 
 
 
 
 
 | 17 | 
 typedef struct hdl_games_list_type | 
 
 
 
 
 
 | 18 | 
 { | 
 
 
 
 
 
 | 19 | 
   u_long count; | 
 
 
 
 
 
 | 20 | 
   hdl_game_info_t *games; | 
 
 
 
 
 
 | 21 | 
   u_long total_chunks; | 
 
 
 
 
 
 | 22 | 
   u_long free_chunks; | 
 
 
 
 
 
 | 23 | 
 } hdl_games_list_t; | 
 
 
 
 
 
 | 24 | 
  | 
 
 
 
 
 
 | 25 | 
 void hdl_glist_free (hdl_games_list_t *glist); | 
 
 
 
 
 
 | 26 | 
 int  hdl_glist_read (hio_t *hio, hdl_games_list_t **glist); | 
 
 
 
 
 
 | 27 | 
 int  hdl_glist_write (hio_t *hio, hdl_game_info_t *ginfo); | 
 
 
 
 
 
 | 28 | 
  | 
 
 
 
 
 
 | 29 | 
 #endif /* _CDVDHDL_H_ */ |