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);
29 void EnableInfo(bool a_enable_info);
31 int OpenPlotFile (const char *plotfile = DEFAULT_PLOT_FILE);
33 void ClosePlotFile ();
36 void DeallocateTimings();
37 void AnalyzeResults ();
43 char cdrom_dev[FILE_MAX];
44 char last_err[ERR_STR_MAX];
54 void * smalloc (size_t size);
55 void sfree (void*& ptr);
56 void sfree (int*& ptr);
58 void read_super(int offset);
59 void read_super2(int offset);
60 void read_super3(int offset);
61 void read_super4(int offset);
62 void read_super5(int offset);
74 int is_bootable(void);
75 int is_video_cdi(void);
77 int guess_filesystem(int start_session);
89 #endif /* __LIB_MAIN_H_ */