2 * $RCSfile: lib_main.h,v $
9 #define __LIB_MAIN_H_ 1
12 #define DEFAULT_CDROM_DEV "/dev/cdrom"
14 #define ERR_STR_MAX 512
15 #define DEFAULT_PLOT_FILE "cdck-plot.dat"
16 #define SECTOR_SIZE 2048
17 #define SECTOR_ERROR (-10)
24 Ccdrom (const char *a_cdrom_dev);
27 const char * Error(void);
30 void EnableInfo(bool a_enable_info);
32 int OpenPlotFile (const char *plotfile = DEFAULT_PLOT_FILE);
34 void ClosePlotFile ();
37 void DeallocateTimings();
38 void AnalyzeResults ();
44 char cdrom_dev[FILE_MAX];
45 char last_err[ERR_STR_MAX];
55 void * smalloc (size_t size);
56 void sfree (void*& ptr);
57 void sfree (int*& ptr);
59 void read_super(int offset);
60 void read_super2(int offset);
61 void read_super3(int offset);
62 void read_super4(int offset);
63 void read_super5(int offset);
65 void read_creation_data (void);
79 int is_bootable(void);
80 int is_video_cdi(void);
82 int guess_filesystem(int start_session);
99 #endif /* __LIB_MAIN_H_ */