diff options
author | pixel <pixel> | 2004-05-03 12:55:04 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-05-03 12:55:04 +0000 |
commit | 5b1e50428eab9ea1d141b84e4579d77ac7b8f2d9 (patch) | |
tree | d1b008ff2f7e02bcf849587842e0c9548347e530 /includes | |
parent | 2371bb1ad54636e4f3f8524af65f37b64ef96a2a (diff) |
Still, various fixes, changes, improvements, new bug added, etc...
Diffstat (limited to 'includes')
-rw-r--r-- | includes/cdutils.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/cdutils.h b/includes/cdutils.h index d21c9cf..c81c093 100644 --- a/includes/cdutils.h +++ b/includes/cdutils.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cdutils.h,v 1.15 2003-12-14 22:04:34 pixel Exp $ */ +/* $Id: cdutils.h,v 1.16 2004-05-03 12:55:04 pixel Exp $ */ #ifndef __CDUTILS_H__ #define __CDUTILS_H__ @@ -83,9 +83,10 @@ class cdutils : public Base { long read_sector(Byte * buffer, int type = GUESS, int number = -1); void read_datas(Byte * buffer, long size, int type = GUESS, int number = -1); void read_file(Handle * Handle, long size, int type = GUESS, int number = -1); - void write_sector(Byte * buffer, int type = GUESS, int number = -1); + void write_sector(Byte * buffer, int type = GUESS, int number = -1) throw (GeneralException); void write_datas(Byte * buffer, long size, int type = GUESS, int number = -1); void write_file(Handle * Handle, long size = -1, int type = GUESS, int number = -1); + void create_sector(int type, int number, bool eof = false) throw (GeneralException); int get_iso_infos(); int show_iso_infos(); int get_pt_infos(); @@ -104,6 +105,8 @@ class cdutils : public Base { static bool is_valid_BCD(unsigned char x); static unsigned long from_MSF(unsigned long msf, unsigned long start = 150); static unsigned long from_MSF(unsigned char m, unsigned char s, unsigned char f, unsigned long start = 150); + static unsigned long to_MSF(int sect, unsigned long start = 150); + static void to_MSF(int sect, unsigned char & m, unsigned char & s, unsigned char & f, unsigned long start = 150); private: void write_ppf(Byte * old_sec, Byte * new_sec, int sec_num); String format_date(String input); |